1 | <?php |
||
7 | final class DateTimeFieldNormalizer implements FieldNormalizerInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var FieldNormalizerInterface |
||
11 | */ |
||
12 | private $fieldNormalizer; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $format; |
||
18 | |||
19 | /** |
||
20 | * @param FieldNormalizerInterface $fieldNormalizer |
||
21 | * @param string $format |
||
22 | */ |
||
23 | 4 | public function __construct(FieldNormalizerInterface $fieldNormalizer, string $format = 'c') |
|
28 | |||
29 | /** |
||
30 | * @param string $path |
||
31 | * @param object $object |
||
32 | * @param NormalizerContextInterface $context |
||
33 | * @param NormalizerInterface|null $normalizer |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | 4 | public function normalizeField( |
|
58 | } |
||
59 |