1 | <?php |
||
9 | final class DateFieldNormalizer implements FieldNormalizerInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var FieldNormalizerInterface |
||
13 | */ |
||
14 | private $fieldNormalizer; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $format; |
||
20 | |||
21 | /** |
||
22 | * @param FieldNormalizerInterface $fieldNormalizer |
||
23 | * @param string $format |
||
24 | */ |
||
25 | 4 | public function __construct(FieldNormalizerInterface $fieldNormalizer, string $format = 'c') |
|
30 | |||
31 | /** |
||
32 | * @param string $path |
||
33 | * @param Request $request |
||
34 | * @param object $object |
||
35 | * @param NormalizerContextInterface $context |
||
36 | * @param NormalizerInterface|null $normalizer |
||
37 | * |
||
38 | * @return mixed |
||
39 | */ |
||
40 | 4 | public function normalizeField( |
|
62 | } |
||
63 |