@@ -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 | { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\ODM; |
9 | 9 | |
10 | 10 | use Spiral\Core\Component; |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | /** |
501 | 501 | * Create selector dedicated to load data for current loader. |
502 | 502 | * |
503 | - * @return Selector|null |
|
503 | + * @return null|RecordSource |
|
504 | 504 | */ |
505 | 505 | public function createSelector() |
506 | 506 | { |
@@ -882,7 +882,7 @@ discard block |
||
882 | 882 | * Parse single result row to generate data tree. Must pass parsing to evert nested loader. |
883 | 883 | * |
884 | 884 | * @param array $row |
885 | - * @return bool |
|
885 | + * @return boolean|null |
|
886 | 886 | */ |
887 | 887 | private function parseRow(array $row) |
888 | 888 | { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\ORM\Entities; |
9 | 9 | |
10 | 10 | use Spiral\Database\Entities\Database; |
@@ -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 | { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\ORM\Entities; |
9 | 9 | |
10 | 10 | use Spiral\Core\Component; |
@@ -99,7 +99,7 @@ |
||
99 | 99 | * Method will not affect state of pre-loaded data! Use reset() method to do that. |
100 | 100 | * |
101 | 101 | * @see sync() |
102 | - * @param mixed $outer |
|
102 | + * @param \Spiral\ORM\RecordInterface $outer |
|
103 | 103 | * @param array $pivotData |
104 | 104 | */ |
105 | 105 | public function link($outer, array $pivotData = []) |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\ORM\Entities\Relations; |
9 | 9 | |
10 | 10 | use Spiral\Database\Entities\Table; |
@@ -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 | */ |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\ORM\Entities\Schemas; |
9 | 9 | |
10 | 10 | use Doctrine\Common\Inflector\Inflector; |
@@ -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 | { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\ORM\Traits; |
9 | 9 | |
10 | 10 | use Spiral\ORM\Entities\RecordSource; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * New instance of ReflectionArgument. |
35 | 35 | * |
36 | - * @param mixed $type |
|
36 | + * @param string $type |
|
37 | 37 | * @param mixed $value |
38 | 38 | */ |
39 | 39 | public function __construct($type, $value) |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @return mixed |
|
46 | + * @return integer |
|
47 | 47 | */ |
48 | 48 | public function getType() |
49 | 49 | { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\Tokenizer\Reflections; |
9 | 9 | |
10 | 10 | /** |
@@ -15,10 +15,10 @@ |
||
15 | 15 | /** |
16 | 16 | * Argument types. |
17 | 17 | */ |
18 | - const CONSTANT = 'constant'; //Scalar constant and not variable. |
|
19 | - const VARIABLE = 'variable'; //PHP variable |
|
18 | + const CONSTANT = 'constant'; //Scalar constant and not variable. |
|
19 | + const VARIABLE = 'variable'; //PHP variable |
|
20 | 20 | const EXPRESSION = 'expression'; //PHP code (expression). |
21 | - const STRING = 'string'; //Simple scalar string, can be fetched using stringValue(). |
|
21 | + const STRING = 'string'; //Simple scalar string, can be fetched using stringValue(). |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @var int |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\Cache; |
9 | 9 | |
10 | 10 | use Spiral\Cache\Configs\CacheConfig; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Spiral Framework. |
|
4 | - * |
|
5 | - * @license MIT |
|
6 | - * @author Anton Titov (Wolfy-J) |
|
7 | - */ |
|
3 | + * Spiral Framework. |
|
4 | + * |
|
5 | + * @license MIT |
|
6 | + * @author Anton Titov (Wolfy-J) |
|
7 | + */ |
|
8 | 8 | namespace Spiral\Cache; |
9 | 9 | |
10 | 10 | use Spiral\Core\Container\InjectableInterface; |