Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 0 |
1 | <?php |
||
12 | class ValueDefinition implements DefinitionInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var mixed |
||
16 | */ |
||
17 | private $value; |
||
18 | |||
19 | private ?string $type; |
||
20 | |||
21 | /** |
||
22 | * @param mixed $value |
||
23 | */ |
||
24 | 10 | public function __construct($value, string $type = null) |
|
25 | { |
||
26 | 10 | $this->value = $value; |
|
27 | 10 | $this->type = $type; |
|
28 | 10 | } |
|
29 | |||
30 | public function getType(): ?string |
||
33 | } |
||
34 | |||
35 | 10 | public function resolve(ContainerInterface $container) |
|
44 |