| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 31 | public function addStmt($stmt) { |
||
| 32 | $stmt = $this->normalizeNode($stmt); |
||
| 33 | |||
| 34 | if ($stmt instanceof Stmt\Property) { |
||
| 35 | $this->properties[] = $stmt; |
||
| 36 | } else if ($stmt instanceof Stmt\ClassMethod) { |
||
| 37 | $this->methods[] = $stmt; |
||
| 38 | } else { |
||
| 39 | throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType())); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $this; |
||
| 43 | } |
||
| 44 | |||
| 56 |