| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | 17 | public function __construct($value, string $type = null) |
|
| 28 | 17 | } |
|
| 29 | |||
| 30 | 1 | public function getType(): ?string |
|
| 31 | { |
||
| 32 | 1 | return $this->type; |
|
| 33 | } |
||
| 34 | |||
| 35 | 15 | public function resolve(ContainerInterface $container) |
|
| 42 | } |
||
| 43 | } |
||
| 44 |