| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class ValueAsKey implements Factory |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ValueTransformer |
||
| 17 | */ |
||
| 18 | private $transformer; |
||
| 19 | |||
| 20 | 5 | public function __construct(ValueTransformer $transformer) |
|
| 23 | 5 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | * |
||
| 28 | * @throw InvalidArgumentException if there is some problem with the config. |
||
| 29 | */ |
||
| 30 | 2 | public function create(string $name, array $config): Dictionary |
|
| 45 | } |
||
| 46 | |||
| 47 | 1 | public function supports(array $config): bool |
|
| 52 |