Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
23 | public function enterNode(Node $node) |
||
24 | { |
||
25 | if (null === $this->parent) { |
||
26 | return; |
||
27 | } |
||
28 | if (!$node instanceof StaticCall) { |
||
29 | return; |
||
30 | } |
||
31 | if ((string) $node->class !== 'parent') { |
||
32 | return; |
||
33 | } |
||
34 | $node->class = new Name($this->parent->getShortName()); |
||
35 | } |
||
37 |