| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 22 | public function leaveNode(Node $node) |
||
| 23 | { |
||
| 24 | if (!$node instanceof Instanceof_) { |
||
| 25 | return null; |
||
| 26 | } |
||
| 27 | if (!$node->class instanceof Name) { |
||
| 28 | return null; |
||
| 29 | } |
||
| 30 | if (!isset($this->typeMap[(string) $node->class])) { |
||
| 31 | return null; |
||
| 32 | } |
||
| 33 | return $this->typeMap[(string) $node->class]->typeCheck($node->expr); |
||
| 34 | } |
||
| 36 |