| Total Complexity | 8 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ParameterDefinition implements DefinitionInterface |
||
| 13 | { |
||
| 14 | private ReflectionParameter $parameter; |
||
| 15 | private bool $hasValue = false; |
||
| 16 | 5 | ||
| 17 | /** |
||
| 18 | 5 | * @var mixed |
|
| 19 | 5 | */ |
|
| 20 | 5 | private $value = null; |
|
| 21 | private ?string $type; |
||
| 22 | 15 | ||
| 23 | /** |
||
| 24 | 15 | * @param mixed $value |
|
| 25 | */ |
||
| 26 | public function __construct(ReflectionParameter $parameter, string $type = null) |
||
| 27 | { |
||
| 28 | $this->parameter = $parameter; |
||
| 29 | $this->type = $type; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param mixed $value |
||
| 34 | */ |
||
| 35 | public function setValue($value): void |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getParameter(): ReflectionParameter |
||
| 42 | { |
||
| 43 | return $this->parameter; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function hasValue(): bool |
||
| 47 | { |
||
| 48 | return $this->hasValue; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getType(): ?string |
||
| 54 | } |
||
| 55 | |||
| 56 | public function resolve(ContainerInterface $container) |
||
| 57 | { |
||
| 65 |