1 | <?php |
||
13 | final class ReferenceOneFieldNormalizer implements FieldNormalizerInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var AccessorInterface |
||
17 | */ |
||
18 | private $identifierAccessor; |
||
19 | |||
20 | /** |
||
21 | * @var AccessorInterface |
||
22 | */ |
||
23 | private $accessor; |
||
24 | |||
25 | /** |
||
26 | * @param AccessorInterface $identifierAccessor |
||
27 | * @param AccessorInterface $accessor |
||
28 | */ |
||
29 | 2 | public function __construct(AccessorInterface $identifierAccessor, AccessorInterface $accessor) |
|
34 | |||
35 | /** |
||
36 | * @param string $path |
||
37 | * @param object $object |
||
38 | * @param NormalizerContextInterface $context |
||
39 | * @param NormalizerInterface|null $normalizer |
||
40 | * |
||
41 | * @return mixed |
||
42 | * |
||
43 | * @throws SerializerLogicException |
||
44 | */ |
||
45 | 2 | public function normalizeField( |
|
57 | } |
||
58 |