1 | <?php |
||
2 | |||
3 | namespace BultonFr\Annotation\Parsers; |
||
4 | |||
5 | /** |
||
6 | * Do action for annotation declared on a method |
||
7 | * |
||
8 | * @package BultonFr\Annotation |
||
9 | */ |
||
10 | class MethodsParser extends AbstractManyParser |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritDoc} |
||
14 | * |
||
15 | * Instanciate the parser object for all methods into the class, and add it |
||
16 | * to the list on AbstractManyParser. |
||
17 | */ |
||
18 | public function run() |
||
19 | { |
||
20 | 1 | $methodList = $this->reflection->getMethods(); |
|
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
21 | |||
22 | 1 | foreach ($methodList as $methodInfo) { |
|
23 | 1 | $parser = new MethodParser($this->parserManager, $methodInfo); |
|
24 | 1 | $parser->run(); |
|
25 | |||
26 | 1 | $this->addItem($methodInfo->getName(), $parser); |
|
27 | } |
||
28 | 1 | } |
|
29 | } |
||
30 |