| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function leaveNode(Node $node) |
||
| 43 | { |
||
| 44 | if ($this->hasClone) { |
||
| 45 | return null; |
||
| 46 | } |
||
| 47 | |||
| 48 | if ($node instanceof Node\Stmt\Class_) { |
||
| 49 | $method = new Builder\Method('__clone'); |
||
| 50 | $method->makePublic(); |
||
| 51 | $method->addStmt(exprClone($this->resolverProperty)); |
||
| 52 | |||
| 53 | $node->stmts[] = $method->getNode(); |
||
| 54 | } |
||
| 55 | |||
| 56 | return null; |
||
| 57 | } |
||
| 58 | } |
||
| 59 |