Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
53 | public function reverseTransform($value) |
||
54 | { |
||
55 | if (null === $value) { |
||
56 | return []; |
||
57 | } |
||
58 | |||
59 | if (!is_string($value)) { |
||
60 | throw new TransformationFailedException('Expected a string.'); |
||
61 | } |
||
62 | |||
63 | if (empty($value)) { |
||
64 | return []; |
||
65 | } |
||
66 | |||
67 | return explode($this->delimiter, $value); |
||
68 | } |
||
69 | } |
||
70 |