| Total Complexity | 9 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class Constant implements ValueTransformer |
||
| 12 | { |
||
| 13 | private const PATTERN = '/^(?P<class>.*)::(?P<constant>.*)$/'; |
||
| 14 | |||
| 15 | public function supports($value): bool |
||
| 36 | } |
||
| 37 | 2 | ||
| 38 | public function transform($value) |
||
| 46 | 1 | ; |
|
| 47 | 1 | } |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return ?array{class: class-string, constant: string} |
||
| 51 | */ |
||
| 52 | private function extract(string $value): ?array |
||
| 64 |