2121use CloudCreativity \LaravelJsonApi \Codec \ChecksMediaTypes ;
2222use CloudCreativity \LaravelJsonApi \Contracts \Adapter \RelationshipAdapterInterface ;
2323use CloudCreativity \LaravelJsonApi \Contracts \Adapter \ResourceAdapterInterface ;
24- use CloudCreativity \LaravelJsonApi \Contracts \Encoder \ Parameters \ EncodingParametersInterface ;
24+ use CloudCreativity \LaravelJsonApi \Contracts \Http \ Query \ QueryParametersInterface ;
2525use CloudCreativity \LaravelJsonApi \Contracts \Queue \AsynchronousProcess ;
2626use CloudCreativity \LaravelJsonApi \Contracts \Store \StoreAwareInterface ;
2727use CloudCreativity \LaravelJsonApi \Document \ResourceObject ;
@@ -86,7 +86,7 @@ abstract protected function destroy($record);
8686 /**
8787 * @inheritdoc
8888 */
89- public function create (array $ document , EncodingParametersInterface $ parameters )
89+ public function create (array $ document , QueryParametersInterface $ parameters )
9090 {
9191 $ record = $ this ->createRecord (
9292 $ resource = $ this ->deserialize ($ document )
@@ -98,15 +98,15 @@ public function create(array $document, EncodingParametersInterface $parameters)
9898 /**
9999 * @inheritDoc
100100 */
101- public function read ($ record , EncodingParametersInterface $ parameters )
101+ public function read ($ record , QueryParametersInterface $ parameters )
102102 {
103103 return $ record ;
104104 }
105105
106106 /**
107107 * @inheritdoc
108108 */
109- public function update ($ record , array $ document , EncodingParametersInterface $ parameters )
109+ public function update ($ record , array $ document , QueryParametersInterface $ parameters )
110110 {
111111 $ resource = $ this ->deserialize ($ document , $ record );
112112
@@ -116,7 +116,7 @@ public function update($record, array $document, EncodingParametersInterface $pa
116116 /**
117117 * @inheritDoc
118118 */
119- public function delete ($ record , EncodingParametersInterface $ params )
119+ public function delete ($ record , QueryParametersInterface $ params )
120120 {
121121 if ($ result = $ this ->invoke ('deleting ' , $ record )) {
122122 return $ result ;
@@ -233,10 +233,10 @@ protected function methodForRelation($field)
233233 *
234234 * @param $record
235235 * @param ResourceObject $resource
236- * @param EncodingParametersInterface $parameters
236+ * @param QueryParametersInterface $parameters
237237 * @return void
238238 */
239- protected function fill ($ record , ResourceObject $ resource , EncodingParametersInterface $ parameters )
239+ protected function fill ($ record , ResourceObject $ resource , QueryParametersInterface $ parameters )
240240 {
241241 $ this ->fillAttributes ($ record , $ resource ->getAttributes ());
242242 $ this ->fillRelationships ($ record , $ resource ->getRelationships (), $ parameters );
@@ -247,13 +247,13 @@ protected function fill($record, ResourceObject $resource, EncodingParametersInt
247247 *
248248 * @param $record
249249 * @param Collection $relationships
250- * @param EncodingParametersInterface $parameters
250+ * @param QueryParametersInterface $parameters
251251 * @return void
252252 */
253253 protected function fillRelationships (
254254 $ record ,
255255 Collection $ relationships ,
256- EncodingParametersInterface $ parameters
256+ QueryParametersInterface $ parameters
257257 ) {
258258 $ relationships ->filter (function ($ value , $ field ) use ($ record ) {
259259 return $ this ->isFillableRelation ($ field , $ record );
@@ -268,13 +268,13 @@ protected function fillRelationships(
268268 * @param $record
269269 * @param $field
270270 * @param array $relationship
271- * @param EncodingParametersInterface $parameters
271+ * @param QueryParametersInterface $parameters
272272 */
273273 protected function fillRelationship (
274274 $ record ,
275275 $ field ,
276276 array $ relationship ,
277- EncodingParametersInterface $ parameters
277+ QueryParametersInterface $ parameters
278278 ) {
279279 $ relation = $ this ->getRelated ($ field );
280280
@@ -289,24 +289,24 @@ protected function fillRelationship(
289289 *
290290 * @param $record
291291 * @param ResourceObject $resource
292- * @param EncodingParametersInterface $parameters
292+ * @param QueryParametersInterface $parameters
293293 */
294- protected function fillRelated ($ record , ResourceObject $ resource , EncodingParametersInterface $ parameters )
294+ protected function fillRelated ($ record , ResourceObject $ resource , QueryParametersInterface $ parameters )
295295 {
296296 // no-op
297297 }
298298
299299 /**
300300 * @param mixed $record
301301 * @param ResourceObject $resource
302- * @param EncodingParametersInterface $parameters
302+ * @param QueryParametersInterface $parameters
303303 * @param bool $updating
304304 * @return AsynchronousProcess|mixed
305305 */
306306 protected function fillAndPersist (
307307 $ record ,
308308 ResourceObject $ resource ,
309- EncodingParametersInterface $ parameters ,
309+ QueryParametersInterface $ parameters ,
310310 $ updating
311311 ) {
312312 $ this ->fill ($ record , $ resource , $ parameters );
0 commit comments