Skip to content

Commit

Permalink
Exclude methods using @access private from documentation (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpedrie authored and dwsupplee committed May 27, 2016
1 parent 3fdbacb commit 7b70a84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/DocGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7b70a84

Please sign in to comment.