| Total Complexity | 9 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class ParameterDefinition implements DefinitionInterface |
||
| 13 | { |
||
| 14 | private ReflectionParameter $parameter; |
||
| 15 | |||
| 16 | 17 | public function __construct(ReflectionParameter $parameter) |
|
| 17 | { |
||
| 18 | 17 | $this->parameter = $parameter; |
|
| 19 | 17 | } |
|
| 20 | |||
| 21 | 63 | public function isVariadic(): bool |
|
| 24 | } |
||
| 25 | |||
| 26 | 45 | public function isOptional(): bool |
|
| 27 | { |
||
| 28 | 45 | return $this->parameter->isOptional(); |
|
| 29 | } |
||
| 30 | |||
| 31 | 41 | public function hasValue(): bool |
|
| 32 | { |
||
| 33 | 41 | return $this->parameter->isDefaultValueAvailable() || $this->parameter->allowsNull(); |
|
| 34 | } |
||
| 35 | |||
| 36 | 46 | public function resolve(DependencyResolverInterface $container) |
|
| 51 | } |
||
| 52 | } |
||
| 53 |