1 | <?php |
||
11 | trait ExtensionSerializerTrait { |
||
12 | |||
13 | /** |
||
14 | * @param mixed $model |
||
15 | * @param array $fields |
||
16 | */ |
||
17 | public function getAttributes($model, array $fields = null) { |
||
25 | |||
26 | /** |
||
27 | */ |
||
28 | public function getFields() { |
||
31 | |||
32 | /** |
||
33 | * @param mixed $model |
||
34 | */ |
||
35 | public function getId($model) { |
||
38 | |||
39 | /** |
||
40 | */ |
||
41 | public function getRelationships() { |
||
46 | |||
47 | /** |
||
48 | */ |
||
49 | public function getSortFields() { |
||
52 | |||
53 | /** |
||
54 | * @param mixed $model |
||
55 | */ |
||
56 | public function getType($model) { |
||
59 | |||
60 | /** |
||
61 | * @param mixed $model |
||
62 | * @param mixed $data |
||
63 | */ |
||
64 | public function hydrate($model, $data) { |
||
75 | |||
76 | /** |
||
77 | * @param mixed $model |
||
78 | * @param mixed $related |
||
79 | */ |
||
80 | public function package($model, $related) { |
||
88 | |||
89 | /** |
||
90 | * @param mixed $model |
||
91 | * @param mixed $data |
||
92 | */ |
||
93 | public function setPackage($model, $data) { |
||
96 | } |
||
97 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.