Total Complexity | 6 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class ValueAsKey implements Factory |
||
14 | { |
||
15 | public function __construct(private readonly ValueTransformer $valueTransformer) {} |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | * |
||
20 | 5 | * @throw InvalidArgumentException if there is some problem with the config. |
|
21 | */ |
||
22 | 5 | public function create(string $name, array $config): Dictionary |
|
37 | 1 | } |
|
38 | |||
39 | 1 | public function supports(array $config): bool |
|
44 |