diff --git a/scripts/DocGenerator.php b/scripts/DocGenerator.php index a20874aa316b..6bc8c11b6b2c 100644 --- a/scripts/DocGenerator.php +++ b/scripts/DocGenerator.php @@ -136,6 +136,14 @@ private function buildMethods($methods) continue; } + $access = $method->getDocBlock()->getTagsByName('access'); + + if (!empty($access)) { + if ($access[0]->getContent() === 'private') { + continue; + } + } + $methodArray[] = $this->buildMethod($method); }