| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function leaveNode(Node $node) |
||
| 26 | { |
||
| 27 | if ($node instanceof Node\Stmt\Class_) { |
||
| 28 | $method = new Builder\Method('__get'); |
||
| 29 | $method->makePublic(); |
||
| 30 | $method->addParam(new Builder\Param('name')); |
||
| 31 | $method->addStmt($this->buildGetExpression()); |
||
| 32 | |||
| 33 | $node->stmts[] = $method->getNode(); |
||
| 34 | } |
||
| 35 | |||
| 36 | return null; |
||
| 37 | } |
||
| 38 | |||
| 45 | } |