Total Complexity | 7 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 84.62% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class LocalizedType extends JsonType |
||
22 | { |
||
23 | public function getName(): string |
||
24 | { |
||
25 | return 'localized'; |
||
26 | } |
||
27 | |||
28 | 1 | public function convertToPHPValue($value, AbstractPlatform $platform): array |
|
29 | { |
||
30 | 1 | if ($value === null || $value === '') { |
|
31 | 1 | return []; |
|
32 | } |
||
33 | |||
34 | 1 | $val = parent::convertToPHPValue($value, $platform); |
|
35 | |||
36 | 1 | return $val; |
|
1 ignored issue
–
show
|
|||
37 | } |
||
38 | |||
39 | 3 | public function convertToDatabaseValue($value, AbstractPlatform $platform): string |
|
50 | } |
||
51 | } |
||
52 |