Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class MixedEntry implements EntryInterface |
||
15 | { |
||
16 | /** @var mixed The value for the entry */ |
||
17 | private $value; |
||
18 | |||
19 | /** |
||
20 | * MixedType constructor. |
||
21 | * @param mixed $value The value for the entry |
||
22 | */ |
||
23 | 12 | public function __construct($value) |
|
24 | { |
||
25 | 12 | $this->value = $value; |
|
26 | 12 | } |
|
27 | |||
28 | /** {@inheritdoc} */ |
||
29 | 3 | public static function createFromCacheParameters(array $parameters): EntryInterface |
|
32 | } |
||
33 | |||
34 | /** {@inheritdoc} */ |
||
35 | 5 | public function getCacheParameters(): array |
|
38 | } |
||
39 | |||
40 | /** {@inheritdoc} */ |
||
41 | 9 | public function isFactory(): bool |
|
44 | } |
||
45 | |||
46 | /** {@inheritdoc} */ |
||
47 | 9 | public function getValue(ContainerInterface $container) |
|
56 |