| Total Complexity | 7 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 93.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ParameterDefinition implements DefinitionInterface |
||
| 14 | { |
||
| 15 | private ReflectionParameter $parameter; |
||
| 16 | private bool $hasValue = false; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var mixed |
||
| 20 | */ |
||
| 21 | private $value = null; |
||
| 22 | |||
| 23 | 7 | public function __construct(ReflectionParameter $parameter) |
|
| 24 | { |
||
| 25 | 7 | $this->parameter = $parameter; |
|
| 26 | 7 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param mixed $value |
||
| 30 | */ |
||
| 31 | 6 | public function setValue($value): void |
|
| 35 | 6 | } |
|
| 36 | |||
| 37 | 37 | public function getParameter(): ReflectionParameter |
|
| 40 | } |
||
| 41 | |||
| 42 | 32 | public function hasValue(): bool |
|
| 43 | { |
||
| 44 | 32 | return $this->hasValue; |
|
| 45 | } |
||
| 46 | |||
| 47 | 29 | public function resolve(ContainerInterface $container) |
|
| 54 | } |
||
| 55 | } |
||
| 56 |