1 | <?php |
||
10 | final class DateTimeFilterTransformer implements DataTransformerInterface |
||
11 | { |
||
12 | private static $defaultTime = [ |
||
13 | 'from' => ['hour' => '00', 'minute' => '00'], |
||
14 | 'to' => ['hour' => '23', 'minute' => '59'], |
||
15 | ]; |
||
16 | |||
17 | /** @var string */ |
||
18 | private $type; |
||
19 | |||
20 | public function __construct(string $type) |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function transform($value): array |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function reverseTransform($value): array |
||
49 | } |
||
50 |