1 | <?php |
||
23 | final class ReservedAttributeNameConverter implements NameConverterInterface |
||
24 | { |
||
25 | const JSON_API_RESERVED_ATTRIBUTES = [ |
||
26 | 'id' => '_id', |
||
27 | 'type' => '_type', |
||
28 | 'links' => '_links', |
||
29 | 'relationships' => '_relationships', |
||
30 | ]; |
||
31 | |||
32 | private $nameConverter; |
||
33 | |||
34 | public function __construct(NameConverterInterface $nameConverter = null) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function normalize($propertyName) |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function denormalize($propertyName) |
||
70 | } |
||
71 |