| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | private function modifyMethod(Node\Stmt\ClassMethod $method): Node\Stmt\ClassMethod |
||
| 44 | { |
||
| 45 | $method->setDocComment(PHPDoc::writeInheritdoc()); |
||
| 46 | $method->stmts = [ |
||
| 47 | new Node\Stmt\Return_( |
||
| 48 | new Node\Expr\MethodCall( |
||
| 49 | new Node\Expr\PropertyFetch(new Node\Expr\Variable('this'), $this->property), |
||
| 50 | $method->name->name |
||
| 51 | ) |
||
| 52 | ) |
||
| 53 | ]; |
||
| 54 | |||
| 55 | return $method; |
||
| 56 | } |
||
| 57 | } |