Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
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 | $inputIterator = new InputAttributeIterator(); |
||
27 | $this->factory = new InputParamFactory( |
||
28 | new InputParamEnumHandler(), |
||
29 | new InputParamObjectHandler($inputIterator), |
||
30 | $inputIterator, |
||
31 | ); |
||
52 |