Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function invoke(Node\Stmt\Function_ $node, PhpFileModelInterface $parent): PhpFileModelInterface |
||
29 | { |
||
30 | $function = new FunctionModel(); |
||
31 | $function->setParentNode($parent); |
||
32 | $function->setName($node->name); |
||
33 | |||
34 | $function = $this->parseFunction($node, $function); |
||
35 | |||
36 | $parent->addFunction($function); |
||
37 | |||
38 | return $parent; |
||
39 | } |
||
41 |