Total Complexity | 7 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 | 8 | public function __construct(ReflectionParameter $parameter) |
|
24 | { |
||
25 | 8 | $this->parameter = $parameter; |
|
26 | 8 | } |
|
27 | |||
28 | /** |
||
29 | * @param mixed $value |
||
30 | */ |
||
31 | 7 | public function setValue($value): void |
|
35 | 7 | } |
|
36 | |||
37 | 37 | public function getParameter(): ReflectionParameter |
|
40 | } |
||
41 | |||
42 | 32 | public function hasValue(): bool |
|
45 | } |
||
46 | |||
47 | 30 | public function resolve(ContainerInterface $container) |
|
56 |