1 | <?php |
||
19 | class EmployeesTransformer implements JsonApiMapping |
||
20 | { |
||
21 | /** |
||
22 | * Returns a string with the full class name, including namespace. |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | public function getClass() |
||
30 | |||
31 | /** |
||
32 | * Returns a string representing the resource name as it will be shown after the mapping. |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getAlias() |
||
40 | |||
41 | /** |
||
42 | * Returns an array of properties that will be renamed. |
||
43 | * Key is current property from the class. Value is the property's alias name. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getAliasedProperties() |
||
54 | |||
55 | /** |
||
56 | * List of properties in the class that will be ignored by the mapping. |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getHideProperties() |
||
66 | |||
67 | /** |
||
68 | * Returns an array of properties that are used as an ID value. |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | public function getIdProperties() |
||
76 | |||
77 | /** |
||
78 | * Returns a list of URLs. This urls must have placeholders to be replaced with the getIdProperties() values. |
||
79 | * |
||
80 | * @return array |
||
81 | */ |
||
82 | public function getUrls() |
||
90 | |||
91 | /** |
||
92 | * Returns an array containing the relationship mappings as an array. |
||
93 | * Key for each relationship defined must match a property of the mapped class. |
||
94 | * |
||
95 | * @return array |
||
96 | */ |
||
97 | public function getRelationships() |
||
101 | } |
||
102 |