| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class LazyTypeByReflectionParameter extends LazyTypeByReflectionType |
||
| 12 | { |
||
| 13 | 6 | public function __construct( |
|
| 14 | private readonly ReflectionParameter $parameter, |
||
| 15 | private readonly TypeRegistryInterface $typeRegistry, |
||
| 16 | ) { |
||
| 17 | 6 | parent::__construct( |
|
| 18 | 6 | $this->parameter->getType(), |
|
| 19 | 6 | $this->typeRegistry, |
|
| 20 | 6 | $this->parameter->getDeclaringClass()->getName(), |
|
| 21 | 6 | ); |
|
| 22 | } |
||
| 23 | |||
| 24 | 5 | public function __invoke(): Webonyx\Type |
|
| 31 | } |
||
| 32 | } |
||
| 33 |