@@ -28,7 +28,7 @@ |
||
28 | 28 | * Get instance of container associated with given object, uses global container as fallback |
29 | 29 | * if not. Method generally used by traits. |
30 | 30 | * |
31 | - * @return ContainerInterface|null |
|
31 | + * @return ContainerInterface |
|
32 | 32 | */ |
33 | 33 | protected function container() |
34 | 34 | { |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * such methods. |
233 | 233 | * |
234 | 234 | * @see AbstractWhere |
235 | - * @param string|mixed $joined Joined column or expression. |
|
235 | + * @param string $joined Joined column or expression. |
|
236 | 236 | * @param mixed $variousA Operator or value. |
237 | 237 | * @param mixed $variousB Value, if operator specified. |
238 | 238 | * @param mixed $variousC Required only in between statements. |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * @param string $joiner Boolean joiner (AND | OR). |
301 | 301 | * @param array $parameters Set of parameters collected from where functions. |
302 | 302 | * @param array $tokens Array to aggregate compiled tokens. Reference. |
303 | - * @param \Closure|null $wrapper Callback or closure used to wrap/collect every potential |
|
303 | + * @param callable $wrapper Callback or closure used to wrap/collect every potential |
|
304 | 304 | * parameter. |
305 | 305 | * @throws BuilderException |
306 | 306 | */ |
@@ -113,6 +113,8 @@ |
||
113 | 113 | * {@inheritdoc} |
114 | 114 | * |
115 | 115 | * @link http://stackoverflow.com/questions/2135418/equivalent-of-limit-and-offset-for-sql-server |
116 | + * @param integer $limit |
|
117 | + * @param integer $offset |
|
116 | 118 | */ |
117 | 119 | protected function compileLimit($limit, $offset, $rowNumber = null) |
118 | 120 | { |
@@ -126,7 +126,7 @@ |
||
126 | 126 | * |
127 | 127 | * @param array $columns Array of columns. |
128 | 128 | * @param array $rowsets Array of rowsets. |
129 | - * @return mixed |
|
129 | + * @return integer |
|
130 | 130 | */ |
131 | 131 | public function batchInsert(array $columns = [], array $rowsets = []) |
132 | 132 | { |
@@ -257,7 +257,7 @@ |
||
257 | 257 | /** |
258 | 258 | * {@inheritdoc} |
259 | 259 | * |
260 | - * @return DocumentCursor|Document[] |
|
260 | + * @return DocumentCursor |
|
261 | 261 | */ |
262 | 262 | public function getIterator() |
263 | 263 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Get composition parent. |
140 | 140 | * |
141 | - * @return Document|null |
|
141 | + * @return EntityInterface |
|
142 | 142 | */ |
143 | 143 | public function getParent() |
144 | 144 | { |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | /** |
486 | 486 | * {@inheritdoc} |
487 | 487 | * |
488 | - * @return Document[] |
|
488 | + * @return \ArrayIterator |
|
489 | 489 | */ |
490 | 490 | public function getIterator() |
491 | 491 | { |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | * Example: |
578 | 578 | * $user->cards->findOne(['active' => true]); |
579 | 579 | * |
580 | - * @param array|DocumentEntity $query |
|
580 | + * @param DocumentEntity $query |
|
581 | 581 | * @return null|DocumentEntity |
582 | 582 | */ |
583 | 583 | public function findOne($query = []) |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | * |
596 | 596 | * @param DocumentEntity $document |
597 | 597 | * @param bool $resetState Set to true to reset compositor solid state. |
598 | - * @return $this|DocumentEntity[] |
|
598 | + * @return Compositor |
|
599 | 599 | * @throws CompositorException |
600 | 600 | */ |
601 | 601 | public function push(DocumentEntity $document, $resetState = true) |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | * |
631 | 631 | * @param array|DocumentEntity $query |
632 | 632 | * @param bool $resetState Set to true to reset compositor solid state. |
633 | - * @return $this|DocumentEntity[] |
|
633 | + * @return Compositor |
|
634 | 634 | * @throws CompositorException |
635 | 635 | */ |
636 | 636 | public function pull($query, $resetState = true) |
@@ -675,7 +675,7 @@ discard block |
||
675 | 675 | * |
676 | 676 | * @param DocumentEntity $document |
677 | 677 | * @param bool $resetState Set to true to reset compositor solid state. |
678 | - * @return $this|DocumentEntity[] |
|
678 | + * @return Compositor |
|
679 | 679 | * @throws CompositorException |
680 | 680 | */ |
681 | 681 | public function addToSet(DocumentEntity $document, $resetState = true) |
@@ -342,7 +342,7 @@ |
||
342 | 342 | * Create valid MongoId object based on string or id provided from client side. |
343 | 343 | * |
344 | 344 | * @param mixed $mongoID String or MongoId object. |
345 | - * @return \MongoId|null |
|
345 | + * @return boolean |
|
346 | 346 | */ |
347 | 347 | public static function mongoID($mongoID) |
348 | 348 | { |
@@ -458,7 +458,7 @@ |
||
458 | 458 | * |
459 | 459 | * @param EntityInterface $entity |
460 | 460 | * @param bool $validate |
461 | - * @return bool|void |
|
461 | + * @return boolean |
|
462 | 462 | */ |
463 | 463 | private function saveEntity(EntityInterface $entity, $validate) |
464 | 464 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param array|\Closure $where Selection WHERE statement. |
43 | 43 | * @param array $load Array or relations to be pre-loaded. |
44 | 44 | * @param array $orderBy Sort by conditions. |
45 | - * @return RecordEntity|null |
|
45 | + * @return null|\Spiral\ORM\RecordInterface |
|
46 | 46 | */ |
47 | 47 | public static function findOne($where = [], array $load = [], array $orderBy = []) |
48 | 48 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @param mixed $primaryKey Primary key. |
64 | 64 | * @param array $load Array or relations to be pre-loaded. |
65 | - * @return RecordEntity|null |
|
65 | + * @return null|\Spiral\ORM\RecordInterface |
|
66 | 66 | */ |
67 | 67 | public static function findByPK($primaryKey, array $load = []) |
68 | 68 | { |