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('__set'); |
||
29 | $method->makePublic(); |
||
30 | $method->addParams([new Builder\Param('name'), new Builder\Param('value')]); |
||
31 | $method->addStmt($this->buildSetExpression()); |
||
32 | |||
33 | $node->stmts[] = $method->getNode(); |
||
34 | } |
||
35 | |||
36 | return null; |
||
37 | } |
||
38 | |||
48 | } |