| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function __construct( |
||
| 20 | ReflectionNamedType $type, |
||
| 21 | private readonly ReflectionParameter $parameter, |
||
| 22 | ) { |
||
| 23 | $this->type = $type->getName(); |
||
|
|
|||
| 24 | $this->isDefaultAvailable = $parameter->isDefaultValueAvailable(); |
||
| 25 | $this->defaultValue = $this->isDefaultAvailable ? $parameter->getDefaultValue() : null; |
||
| 26 | $this->factory = new InputParamFactory( |
||
| 27 | new InputParamEnumHandler(), |
||
| 28 | new InputParamObjectHandler(), |
||
| 29 | ); |
||
| 50 |