1 | <?php |
||
11 | trait ApplicationSerializerTrait { |
||
12 | |||
13 | /** |
||
14 | * @param mixed $model |
||
15 | * @param array $fields |
||
16 | */ |
||
17 | public function getAttributes($model, array $fields = null) { |
||
27 | |||
28 | /** |
||
29 | */ |
||
30 | public function getFields() { |
||
33 | |||
34 | /** |
||
35 | * @param mixed $model |
||
36 | */ |
||
37 | public function getId($model) { |
||
40 | |||
41 | /** |
||
42 | */ |
||
43 | public function getRelationships() { |
||
48 | |||
49 | /** |
||
50 | */ |
||
51 | public function getSortFields() { |
||
54 | |||
55 | /** |
||
56 | * @param mixed $model |
||
57 | */ |
||
58 | public function getType($model) { |
||
61 | |||
62 | /** |
||
63 | * @param mixed $model |
||
64 | * @param mixed $data |
||
65 | */ |
||
66 | public function hydrate($model, $data) { |
||
77 | |||
78 | /** |
||
79 | * @param mixed $model |
||
80 | * @param mixed $related |
||
81 | */ |
||
82 | public function package($model, $related) { |
||
90 | |||
91 | /** |
||
92 | * @param mixed $model |
||
93 | * @param mixed $data |
||
94 | */ |
||
95 | public function setPackage($model, $data) { |
||
98 | } |
||
99 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.