@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Get the services provided by the provider. |
58 | 58 | * |
59 | - * @return array |
|
59 | + * @return string[] |
|
60 | 60 | */ |
61 | 61 | public function provides() |
62 | 62 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
74 | - * @param $class |
|
74 | + * @param string $class |
|
75 | 75 | */ |
76 | 76 | public function setClass($class) |
77 | 77 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @return mixed |
|
82 | + * @return string |
|
83 | 83 | */ |
84 | 84 | public function getClass() |
85 | 85 | { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * Create a mapper for a given entity. |
144 | 144 | * |
145 | 145 | * @param \Analogue\ORM\Mappable|string|array|\Traversable $entity |
146 | - * @param mixed $entityMap |
|
146 | + * @param null|EntityMap $entityMap |
|
147 | 147 | * |
148 | 148 | * @throws MappingException |
149 | 149 | * @throws \InvalidArgumentException |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | /** |
252 | 252 | * Check if the entity is already registered. |
253 | 253 | * |
254 | - * @param string|Entity $entity |
|
254 | + * @param string $entity |
|
255 | 255 | * |
256 | 256 | * @return bool |
257 | 257 | */ |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | /** |
334 | 334 | * Register an entity. |
335 | 335 | * |
336 | - * @param string|\Analogue\ORM\Mappable $entity entity's class name |
|
336 | + * @param string $entity entity's class name |
|
337 | 337 | * @param string|EntityMap $entityMap map's class name |
338 | 338 | * |
339 | 339 | * @throws MappingException |
@@ -369,6 +369,7 @@ |
||
369 | 369 | * Set the join clause for the relation query. |
370 | 370 | * |
371 | 371 | * @param \Analogue\ORM\Query|null |
372 | + * @param Query $query |
|
372 | 373 | * |
373 | 374 | * @return $this |
374 | 375 | */ |
@@ -33,7 +33,7 @@ |
||
33 | 33 | /** |
34 | 34 | * Remove the scope from the given Analogue query builder. |
35 | 35 | * |
36 | - * @param mixed $query |
|
36 | + * @param Query $query |
|
37 | 37 | * |
38 | 38 | * @return void |
39 | 39 | */ |
@@ -197,7 +197,6 @@ |
||
197 | 197 | /** |
198 | 198 | * Update attributes on actual entity. |
199 | 199 | * |
200 | - * @param array $attributes |
|
201 | 200 | * |
202 | 201 | * @return void |
203 | 202 | */ |
@@ -621,7 +621,7 @@ |
||
621 | 621 | * |
622 | 622 | * @throws MappingException |
623 | 623 | * |
624 | - * @return mixed |
|
624 | + * @return null|Collection |
|
625 | 625 | */ |
626 | 626 | public function getEmptyValueForRelationship(string $relation) |
627 | 627 | { |
@@ -122,7 +122,7 @@ |
||
122 | 122 | /** |
123 | 123 | * Map results to a Collection. |
124 | 124 | * |
125 | - * @param array|Collection $results |
|
125 | + * @param Collection $results |
|
126 | 126 | * @param array $eagerLoads |
127 | 127 | * |
128 | 128 | * @return Collection |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * |
177 | 177 | * @throws \Analogue\ORM\Exceptions\EntityNotFoundException |
178 | 178 | * |
179 | - * @return mixed|self |
|
179 | + * @return \Analogue\ORM\Mappable |
|
180 | 180 | */ |
181 | 181 | public function findOrFail($id, $columns = ['*']) |
182 | 182 | { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * @param string $column |
248 | 248 | * @param string $key |
249 | 249 | * |
250 | - * @return array |
|
250 | + * @return Collection |
|
251 | 251 | */ |
252 | 252 | public function lists($column, $key = null) |
253 | 253 | { |