Total Complexity | 4 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class ListNormalizer extends AbstractNormalizer |
||
8 | { |
||
9 | /** |
||
10 | * @param mixed $value |
||
11 | * @param string $operator |
||
12 | * |
||
13 | * @return string[] |
||
14 | */ |
||
15 | protected function process($value, string $operator): array |
||
16 | { |
||
17 | return \explode(',', $value) ?: []; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | protected function supportsNormalization($value, string $operator): bool |
||
26 | } |
||
27 | } |
||
28 |