Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | final class DynamicReference implements ReferenceInterface |
||
34 | { |
||
35 | private DefinitionInterface $definition; |
||
36 | |||
37 | /** |
||
38 | * @throws InvalidConfigException |
||
39 | */ |
||
40 | 8 | private function __construct(mixed $definition) |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * @see Normalizer |
||
51 | * |
||
52 | * @throws InvalidConfigException If definition is not valid. |
||
53 | */ |
||
54 | 8 | public static function to(mixed $id): self |
|
57 | } |
||
58 | |||
59 | 5 | public function resolve(ContainerInterface $container): mixed |
|
64 |