| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function parse(Node $node, NodeInterface $parent): NodeInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Overriding variable types. |
||
| 28 | * @var Node\Stmt\ClassMethod $node The method node to parse. |
||
| 29 | * @var ClassLikeInterface $parent The node which contains this namespace. |
||
| 30 | */ |
||
| 31 | $function = new FunctionModel(); |
||
| 32 | $function->setName($node->name); |
||
| 33 | |||
| 34 | $parent->addFunction($function); |
||
| 35 | |||
| 36 | return $parent; |
||
|
|
|||
| 37 | } |
||
| 39 |