| 1 | <?php |
||
| 8 | trait PreferenceSerializerTrait { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @param mixed $model |
||
| 12 | * @param array $fields |
||
| 13 | */ |
||
| 14 | public function getAttributes($model, array $fields = null) { |
||
| 21 | |||
| 22 | /** |
||
| 23 | */ |
||
| 24 | public function getFields() { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param mixed $model |
||
| 30 | */ |
||
| 31 | public function getId($model) { |
||
| 34 | |||
| 35 | /** |
||
| 36 | */ |
||
| 37 | public function getRelationships() { |
||
| 41 | |||
| 42 | /** |
||
| 43 | */ |
||
| 44 | public function getSortFields() { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param mixed $model |
||
| 50 | */ |
||
| 51 | public function getType($model) { |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param mixed $model |
||
| 57 | * @param mixed $data |
||
| 58 | */ |
||
| 59 | public function hydrate($model, $data) { |
||
| 70 | } |
||
| 71 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.