@@ -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) |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * Adds an event listener. |
| 23 | 23 | * |
| 24 | 24 | * @param string|array $eventNames The event name(s) to listen for. |
| 25 | - * @param object $listener The event listener object. |
|
| 25 | + * @param EventSubscriberInterface $listener The event listener object. |
|
| 26 | 26 | * @return self |
| 27 | 27 | * @throws \InvalidArgumentException If the listener does not contain the event method. |
| 28 | 28 | */ |
@@ -53,6 +53,7 @@ discard block |
||
| 53 | 53 | * Dispatches an event to all registered listeners. |
| 54 | 54 | * |
| 55 | 55 | * @param EventArguments|null $arguments |
| 56 | + * @param string $eventName |
|
| 56 | 57 | * @return self |
| 57 | 58 | */ |
| 58 | 59 | public function dispatch($eventName, EventArguments $arguments = null) |
@@ -111,7 +112,7 @@ discard block |
||
| 111 | 112 | * Removes an event listener, if registered. |
| 112 | 113 | * |
| 113 | 114 | * @param string|array $eventNames The event name(s) to listen for. |
| 114 | - * @param object $listener The event listener object. |
|
| 115 | + * @param EventSubscriberInterface $listener The event listener object. |
|
| 115 | 116 | * @return self |
| 116 | 117 | */ |
| 117 | 118 | public function removeListener($eventNames, $listener) |
@@ -96,12 +96,12 @@ |
||
| 96 | 96 | return null; |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | - /** |
|
| 100 | - * Determines if registered listeners exist for an event name. |
|
| 101 | - * |
|
| 102 | - * @param string $eventName |
|
| 103 | - * @return bool |
|
| 104 | - */ |
|
| 99 | + /** |
|
| 100 | + * Determines if registered listeners exist for an event name. |
|
| 101 | + * |
|
| 102 | + * @param string $eventName |
|
| 103 | + * @return bool |
|
| 104 | + */ |
|
| 105 | 105 | public function hasListeners($eventName) |
| 106 | 106 | { |
| 107 | 107 | return null !== $this->getListeners($eventName); |
@@ -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 | { |