Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class CarbonToArrayTransformer extends DateTimeToArrayTransformer |
||
16 | { |
||
17 | /** |
||
18 | * Transforms a localized date into a normalized date. |
||
19 | * |
||
20 | * @param array $value Localized date |
||
21 | * |
||
22 | * @return null|Carbon Normalized date |
||
23 | * @throws TransformationFailedException |
||
24 | * |
||
25 | * @throws TransformationFailedException If the given value is not an array, |
||
26 | * if the value could not be transformed |
||
27 | */ |
||
28 | 1 | public function reverseTransform($value): ?Carbon |
|
40 |