@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | * |
| 458 | 458 | * @see findOne() |
| 459 | 459 | * @param mixed $id Primary key value. |
| 460 | - * @return RecordEntity|null |
|
| 460 | + * @return null|RecordInterface |
|
| 461 | 461 | * @throws SelectorException |
| 462 | 462 | */ |
| 463 | 463 | public function findByPK($id) |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | * @see findByPK() |
| 483 | 483 | * @param array $where Selection WHERE statement. |
| 484 | 484 | * @param bool $setLimit Use limit 1. |
| 485 | - * @return RecordEntity|null |
|
| 485 | + * @return null|RecordInterface |
|
| 486 | 486 | */ |
| 487 | 487 | public function findOne(array $where = [], $setLimit = true) |
| 488 | 488 | { |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | * Perform iterator on pre-loaded data. Use relation selector to iterate thought custom relation |
| 336 | 336 | * query. |
| 337 | 337 | * |
| 338 | - * @return RecordEntity|RecordEntity[]|RecordIterator |
|
| 338 | + * @return null|EntityInterface |
|
| 339 | 339 | */ |
| 340 | 340 | public function getIterator() |
| 341 | 341 | { |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | * |
| 466 | 466 | * @param EntityInterface $entity |
| 467 | 467 | * @param bool $validate |
| 468 | - * @return bool|void |
|
| 468 | + * @return boolean |
|
| 469 | 469 | */ |
| 470 | 470 | private function saveEntity(EntityInterface $entity, $validate) |
| 471 | 471 | { |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | * $tag->tagged->posts; |
| 190 | 190 | * |
| 191 | 191 | * @param string $alias |
| 192 | - * @return RecordEntity|RecordIterator |
|
| 192 | + * @return null|EntityInterface |
|
| 193 | 193 | */ |
| 194 | 194 | public function __get($alias) |
| 195 | 195 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Related source class. |
| 100 | 100 | * |
| 101 | - * @return string|null |
|
| 101 | + * @return string |
|
| 102 | 102 | */ |
| 103 | 103 | public function getSource() |
| 104 | 104 | { |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | * value using class name and Doctrine inflector. |
| 154 | 154 | * |
| 155 | 155 | * @see Record::$table |
| 156 | - * @return mixed |
|
| 156 | + * @return string |
|
| 157 | 157 | */ |
| 158 | 158 | public function getTable() |
| 159 | 159 | { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * Get database where record data should be stored in. Database alias must be resolved. |
| 173 | 173 | * |
| 174 | 174 | * @see Record::$database |
| 175 | - * @return mixed |
|
| 175 | + * @return string |
|
| 176 | 176 | */ |
| 177 | 177 | public function getDatabase() |
| 178 | 178 | { |
@@ -487,7 +487,7 @@ discard block |
||
| 487 | 487 | * @param AbstractColumn $column |
| 488 | 488 | * @param string $definition |
| 489 | 489 | * @param mixed $default Default value declared by record schema. |
| 490 | - * @return mixed |
|
| 490 | + * @return AbstractColumn |
|
| 491 | 491 | * @throws DefinitionException |
| 492 | 492 | * @throws \Spiral\Database\Exceptions\SchemaException |
| 493 | 493 | */ |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | * @param string $class Class to be used to represent PDOStatement. |
| 201 | 201 | * @param array $args Class construction arguments, by default array of parameters. |
| 202 | 202 | * |
| 203 | - * @return ResultInterface|\PDOStatement|PDOQuery |
|
| 203 | + * @return \PDOStatement |
|
| 204 | 204 | */ |
| 205 | 205 | public function query($query, array $parameters = [], $class = null, array $args = []) |
| 206 | 206 | { |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | /** |
| 69 | 69 | * Migration status. |
| 70 | 70 | * |
| 71 | - * @return int |
|
| 71 | + * @return boolean |
|
| 72 | 72 | */ |
| 73 | 73 | public function getStatus() |
| 74 | 74 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * Get composition parent. |
| 144 | 144 | * |
| 145 | - * @return EntityInterface|DocumentEntity|null |
|
| 145 | + * @return EntityInterface |
|
| 146 | 146 | */ |
| 147 | 147 | public function getParent() |
| 148 | 148 | { |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | /** |
| 495 | 495 | * {@inheritdoc} |
| 496 | 496 | * |
| 497 | - * @return DocumentEntity[] |
|
| 497 | + * @return \ArrayIterator |
|
| 498 | 498 | */ |
| 499 | 499 | public function getIterator() |
| 500 | 500 | { |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | * Example: |
| 591 | 591 | * $user->cards->findOne(['active' => true]); |
| 592 | 592 | * |
| 593 | - * @param array|DocumentEntity $query |
|
| 593 | + * @param DocumentEntity $query |
|
| 594 | 594 | * |
| 595 | 595 | * @return null|DocumentEntity |
| 596 | 596 | */ |
@@ -610,7 +610,7 @@ discard block |
||
| 610 | 610 | * @param DocumentEntity $document |
| 611 | 611 | * @param bool $resetState Set to true to reset compositor solid state. |
| 612 | 612 | * |
| 613 | - * @return $this|DocumentEntity[] |
|
| 613 | + * @return Compositor |
|
| 614 | 614 | * |
| 615 | 615 | * @throws CompositorException |
| 616 | 616 | */ |
@@ -647,7 +647,7 @@ discard block |
||
| 647 | 647 | * @param array|DocumentEntity $query |
| 648 | 648 | * @param bool $resetState Set to true to reset compositor solid state. |
| 649 | 649 | * |
| 650 | - * @return $this|DocumentEntity[] |
|
| 650 | + * @return Compositor |
|
| 651 | 651 | * |
| 652 | 652 | * @throws CompositorException |
| 653 | 653 | */ |
@@ -695,7 +695,7 @@ discard block |
||
| 695 | 695 | * @param DocumentEntity $document |
| 696 | 696 | * @param bool $resetState Set to true to reset compositor solid state. |
| 697 | 697 | * |
| 698 | - * @return $this|DocumentEntity[] |
|
| 698 | + * @return Compositor |
|
| 699 | 699 | * |
| 700 | 700 | * @throws CompositorException |
| 701 | 701 | */ |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | /** |
| 297 | 297 | * {@inheritdoc} |
| 298 | 298 | * |
| 299 | - * @return DocumentCursor|DocumentEntity[] |
|
| 299 | + * @return DocumentCursor |
|
| 300 | 300 | */ |
| 301 | 301 | public function getIterator() |
| 302 | 302 | { |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | * Debug information and logging. |
| 437 | 437 | * |
| 438 | 438 | * @param \MongoCursor $cursor |
| 439 | - * @param int|bool $profiling Profiling level |
|
| 439 | + * @param integer $profiling Profiling level |
|
| 440 | 440 | */ |
| 441 | 441 | protected function describeCursor( |
| 442 | 442 | \MongoCursor $cursor, |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * Related source class. |
| 63 | 63 | * |
| 64 | - * @return string|null |
|
| 64 | + * @return string |
|
| 65 | 65 | */ |
| 66 | 66 | public function getSource() |
| 67 | 67 | { |
@@ -553,7 +553,7 @@ discard block |
||
| 553 | 553 | * @param DocumentSchema $childA |
| 554 | 554 | * @param DocumentSchema $childB |
| 555 | 555 | * |
| 556 | - * @return int |
|
| 556 | + * @return boolean |
|
| 557 | 557 | */ |
| 558 | 558 | private function sortChildren(DocumentSchema $childA, DocumentSchema $childB) |
| 559 | 559 | { |