@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * @param SerializerInterface $serializer |
51 | 51 | * @param NormalizerInterface $normalizer |
52 | - * @param StoreInterface $store |
|
52 | + * @param Store $store |
|
53 | 53 | * @param Rest\RestConfiguration $config |
54 | 54 | */ |
55 | 55 | public function __construct(SerializerInterface $serializer, NormalizerInterface $normalizer, Store $store, Rest\RestConfiguration $config) |
@@ -88,7 +88,7 @@ |
||
88 | 88 | /** |
89 | 89 | * {@inheritDoc} |
90 | 90 | */ |
91 | - public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions =[], $offset = 0, $limit = 0) |
|
91 | + public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions = [], $offset = 0, $limit = 0) |
|
92 | 92 | { |
93 | 93 | $collection = $this->getStore()->findQuery($typeKey, $criteria, $fields, $sort, $offset, $limit); |
94 | 94 | $payload = $this->serializeCollection($collection); |
@@ -28,11 +28,11 @@ |
||
28 | 28 | * Constructor. |
29 | 29 | * Overwritten to require a message and an HTTP code. |
30 | 30 | * |
31 | - * @param string $message |
|
32 | 31 | * @param int $httpCode |
33 | 32 | * @param string $errorType |
34 | 33 | * @param int $code |
35 | 34 | * @param HttpExceptionInterface|null $previous |
35 | + * @param string $detail |
|
36 | 36 | */ |
37 | 37 | public function __construct($detail, $httpCode, $errorType, $code = 0, HttpExceptionInterface $previous = null) |
38 | 38 | { |
@@ -29,9 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Constructor. |
31 | 31 | * |
32 | - * @param Redis $redis |
|
33 | 32 | * @param int $ttl |
34 | - * @param int $serializer |
|
35 | 33 | */ |
36 | 34 | public function __construct($ttl = 3600) |
37 | 35 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - private $prefix = 'ModlrData'; |
|
27 | + private $prefix = 'ModlrData'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Constructor. |
@@ -50,7 +50,6 @@ |
||
50 | 50 | * Constructor. |
51 | 51 | * |
52 | 52 | * @param FileLocatorInterface $fileLocator |
53 | - * @param Validator $validator |
|
54 | 53 | * @param StorageLayerManager $storageManager |
55 | 54 | */ |
56 | 55 | public function __construct(FileLocatorInterface $fileLocator, StorageLayerManager $storageManager) |
@@ -278,7 +278,7 @@ |
||
278 | 278 | * Gets the parent entity type. |
279 | 279 | * For entities that are extended. |
280 | 280 | * |
281 | - * @return string|null |
|
281 | + * @return boolean |
|
282 | 282 | */ |
283 | 283 | public function getParentEntityType() |
284 | 284 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Gets the cache instance. |
81 | 81 | * |
82 | - * @return CacheInterface|null |
|
82 | + * @return CacheInterface |
|
83 | 83 | */ |
84 | 84 | public function getCache() |
85 | 85 | { |
@@ -242,6 +242,9 @@ discard block |
||
242 | 242 | return $this->isDescendantOf($childMeta->getParentEntityType(), $parent); |
243 | 243 | } |
244 | 244 | |
245 | + /** |
|
246 | + * @param string $parentType |
|
247 | + */ |
|
245 | 248 | public function validateResourceTypes($parentType, $childType) |
246 | 249 | { |
247 | 250 | $meta = $this->getMetadataForType($parentType); |
@@ -323,6 +326,7 @@ discard block |
||
323 | 326 | /** |
324 | 327 | * Gets a Metadata instance for a type from memory. |
325 | 328 | * |
329 | + * @param string $type |
|
326 | 330 | * @return EntityMetadata|null |
327 | 331 | */ |
328 | 332 | private function getFromMemory($type) |
@@ -348,6 +352,7 @@ discard block |
||
348 | 352 | /** |
349 | 353 | * Retrieves a Metadata instance for a type from cache. |
350 | 354 | * |
355 | + * @param string $type |
|
351 | 356 | * @return EntityMetadata|null |
352 | 357 | */ |
353 | 358 | private function getFromCache($type) |
@@ -264,7 +264,7 @@ |
||
264 | 264 | * @param EntityMetadata &$metadata |
265 | 265 | * @param EntityMetadata $toAdd |
266 | 266 | */ |
267 | - private function mergeMetadata(EntityMetadata &$metadata = null, EntityMetadata $toAdd) |
|
267 | + private function mergeMetadata(EntityMetadata & $metadata = null, EntityMetadata $toAdd) |
|
268 | 268 | { |
269 | 269 | if (null === $metadata) { |
270 | 270 | $metadata = clone $toAdd; |
@@ -135,7 +135,7 @@ |
||
135 | 135 | /** |
136 | 136 | * Validates the relationship type. |
137 | 137 | * |
138 | - * @param string $type |
|
138 | + * @param string $relType |
|
139 | 139 | * @return bool |
140 | 140 | * @throws MetadataException |
141 | 141 | */ |
@@ -143,7 +143,7 @@ |
||
143 | 143 | * |
144 | 144 | * @api |
145 | 145 | * @param string $key The property field key. |
146 | - * @return Model|Model[]|null|mixed |
|
146 | + * @return null|Model |
|
147 | 147 | */ |
148 | 148 | public function get($key) |
149 | 149 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * @todo Add sorting and pagination (limit/skip). |
97 | 97 | * @todo Handle find all with identifiers. |
98 | 98 | * @param string $typeKey The model type. |
99 | - * @param array $idenitifiers The model identifiers (optional). |
|
99 | + * @param array $identifiers The model identifiers (optional). |
|
100 | 100 | * @return Collection |
101 | 101 | */ |
102 | 102 | public function findAll($typeKey, array $identifiers = []) |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | /** |
527 | 527 | * Converts the id value to a normalized string. |
528 | 528 | * |
529 | - * @param mixed $identenfier The identifier to convert. |
|
529 | + * @param mixed $identifier The identifier to convert. |
|
530 | 530 | * @return string |
531 | 531 | */ |
532 | 532 | protected function convertId($identifier) |