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