| Total Complexity | 7 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class ParameterDefinition implements DefinitionInterface |
||
| 12 | { |
||
| 13 | private ReflectionParameter $parameter; |
||
| 14 | private bool $hasValue = false; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var mixed |
||
| 18 | */ |
||
| 19 | private $value = null; |
||
| 20 | 15 | ||
| 21 | public function __construct(ReflectionParameter $parameter) |
||
| 22 | 15 | { |
|
| 23 | 15 | $this->parameter = $parameter; |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param mixed $value |
||
| 28 | 14 | */ |
|
| 29 | public function setValue($value): void |
||
| 33 | } |
||
| 34 | 61 | ||
| 35 | public function hasValue(): bool |
||
| 36 | 61 | { |
|
| 37 | return $this->hasValue; |
||
| 38 | } |
||
| 39 | 47 | ||
| 40 | public function isVariadic(): bool |
||
| 43 | } |
||
| 44 | 44 | ||
| 45 | public function isOptional(): bool |
||
| 46 | 44 | { |
|
| 47 | return $this->parameter->isOptional(); |
||
| 48 | } |
||
| 49 | |||
| 50 | public function resolve(DependencyResolverInterface $container) |
||
| 57 | } |
||
| 58 | } |
||
| 59 |