@@ -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); |
@@ -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 | */ |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * Removes an event listener, if registered. |
| 112 | 112 | * |
| 113 | 113 | * @param string|array $eventNames The event name(s) to listen for. |
| 114 | - * @param object $listener The event listener object. |
|
| 114 | + * @param EventSubscriberInterface $listener The event listener object. |
|
| 115 | 115 | * @return self |
| 116 | 116 | */ |
| 117 | 117 | public function removeListener($eventNames, $listener) |
@@ -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; |
@@ -236,8 +236,8 @@ |
||
| 236 | 236 | if (isset($mapping['calculated']) && is_array($mapping['calculated'])) { |
| 237 | 237 | $calculated = $mapping['calculated']; |
| 238 | 238 | if (isset($calculated['class']) && isset($calculated['method'])) { |
| 239 | - $attribute->calculated['class'] = $calculated['class']; |
|
| 240 | - $attribute->calculated['method'] = $calculated['method']; |
|
| 239 | + $attribute->calculated['class'] = $calculated['class']; |
|
| 240 | + $attribute->calculated['method'] = $calculated['method']; |
|
| 241 | 241 | } |
| 242 | 242 | } |
| 243 | 243 | |
@@ -45,7 +45,6 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Returns a set of autocomplete results for a model type, attribute key, and search value. |
| 47 | 47 | * |
| 48 | - * @param string $typeKey |
|
| 49 | 48 | * @param string $attributeKey |
| 50 | 49 | * @param string $searchValue |
| 51 | 50 | * @return AutocompleteResult[] |
@@ -167,6 +167,7 @@ discard block |
||
| 167 | 167 | * |
| 168 | 168 | * Overloaded to support relationships. |
| 169 | 169 | * |
| 170 | + * @param string $key |
|
| 170 | 171 | */ |
| 171 | 172 | public function get($key) |
| 172 | 173 | { |
@@ -412,6 +413,7 @@ discard block |
||
| 412 | 413 | * Sets a model property: an attribute value, a has-one model, or an entire has-many model collection. |
| 413 | 414 | * Note: To push/remove a single Model into a has-many collection, or clear a collection, use @see push(), remove() and clear(). |
| 414 | 415 | * |
| 416 | + * @param Model|null $value |
|
| 415 | 417 | */ |
| 416 | 418 | public function set($key, $value) |
| 417 | 419 | { |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * @todo Add sorting and pagination (limit/skip). |
| 108 | 108 | * @todo Handle find all with identifiers. |
| 109 | 109 | * @param string $typeKey The model type. |
| 110 | - * @param array $idenitifiers The model identifiers (optional). |
|
| 110 | + * @param array $identifiers The model identifiers (optional). |
|
| 111 | 111 | * @return Collections\Collection |
| 112 | 112 | */ |
| 113 | 113 | public function findAll($typeKey, array $identifiers = []) |
@@ -374,7 +374,6 @@ discard block |
||
| 374 | 374 | /** |
| 375 | 375 | * Loads a has-many embed collection. |
| 376 | 376 | * |
| 377 | - * @param EmbeddedPropMetadata $relMeta |
|
| 378 | 377 | * @param array|null $embedDocs |
| 379 | 378 | * @return Collections\EmbedCollection |
| 380 | 379 | */ |
@@ -625,7 +624,7 @@ discard block |
||
| 625 | 624 | /** |
| 626 | 625 | * Converts the id value to a normalized string. |
| 627 | 626 | * |
| 628 | - * @param mixed $identenfier The identifier to convert. |
|
| 627 | + * @param mixed $identifier The identifier to convert. |
|
| 629 | 628 | * @return string |
| 630 | 629 | */ |
| 631 | 630 | protected function convertId($identifier) |