| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function __construct(\ReflectionParameter $parameter) |
||
| 14 | { |
||
| 15 | if (!$type = $parameter->getType()) { |
||
| 16 | return; |
||
| 17 | } |
||
| 18 | |||
| 19 | if ($type instanceof \ReflectionNamedType) { |
||
| 20 | $this->types = [$type]; |
||
| 21 | |||
| 22 | return; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** @var \ReflectionUnionType $type */ |
||
| 26 | $this->types = $type->getTypes(); |
||
| 27 | } |
||
| 68 |