@@ -4,12 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use As3\Modlr\Api\AbstractAdapter; |
6 | 6 | use As3\Modlr\Api\AdapterException; |
7 | -use As3\Modlr\Exception\HttpExceptionInterface; |
|
8 | 7 | use As3\Modlr\Metadata\EntityMetadata; |
9 | -use As3\Modlr\Models\Collection; |
|
10 | -use As3\Modlr\Models\Model; |
|
11 | 8 | use As3\Modlr\Rest; |
12 | -use As3\Modlr\Store\Store; |
|
13 | 9 | |
14 | 10 | /** |
15 | 11 | * Adapter for handling API operations using the JSON API specification. |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * @param Model $owner |
162 | 162 | * @param Model[]|null $models |
163 | 163 | * @param AdapterInterface $adapter |
164 | - * @return array |
|
164 | + * @return \As3\Modlr\Metadata\EntityMetadata |
|
165 | 165 | */ |
166 | 166 | protected function serializeHasMany(Model $owner, array $models = null, AdapterInterface $adapter) |
167 | 167 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * @param Model $owner |
178 | 178 | * @param Model|null $model |
179 | 179 | * @param AdapterInterface $adapter |
180 | - * @return array |
|
180 | + * @return \As3\Modlr\Metadata\EntityMetadata |
|
181 | 181 | */ |
182 | 182 | protected function serializeHasOne(Model $owner, Model $model = null, AdapterInterface $adapter) |
183 | 183 | { |