| 1 | <?php |
||
| 8 | class ContinentSerializer extends AbstractSerializer { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @param mixed $model |
||
| 12 | * @param array $fields |
||
| 13 | */ |
||
| 14 | public function getAttributes($model, array $fields = null) { |
||
| 22 | |||
| 23 | /** |
||
| 24 | */ |
||
| 25 | public function getFields() { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param mixed $model |
||
| 31 | */ |
||
| 32 | public function getId($model) { |
||
| 35 | |||
| 36 | /** |
||
| 37 | */ |
||
| 38 | public function getSortFields() { |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param mixed $model |
||
| 44 | */ |
||
| 45 | public function getType($model) { |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param mixed $model |
||
| 51 | * @param mixed $data |
||
| 52 | */ |
||
| 53 | public function hydrate($model, $data) { |
||
| 57 | } |
||
| 58 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.