@@ -58,7 +58,7 @@ |
||
58 | 58 | * Set table names SELECT query should be performed for. Table names can be provided with |
59 | 59 | * specified alias (AS construction). |
60 | 60 | * |
61 | - * @param array|string|mixed $tables Array of names, comma separated string or set of |
|
61 | + * @param string $tables Array of names, comma separated string or set of |
|
62 | 62 | * parameters. |
63 | 63 | * @return $this |
64 | 64 | */ |
@@ -228,7 +228,7 @@ |
||
228 | 228 | * Execute statement. |
229 | 229 | * |
230 | 230 | * @param string $statement |
231 | - * @param array $parameters |
|
231 | + * @param string[] $parameters |
|
232 | 232 | * @return \PDOStatement |
233 | 233 | */ |
234 | 234 | protected function run($statement, array $parameters = []) |
@@ -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 = []) |
@@ -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 | */ |
@@ -28,7 +28,7 @@ discard block |
||
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 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @internal Do not use for business logic. |
52 | 52 | * @param ContainerInterface $container Can be set to null. |
53 | - * @return ContainerInterface|null |
|
53 | + * @return ContainerInterface |
|
54 | 54 | */ |
55 | 55 | final protected static function staticContainer(ContainerInterface $container = null) |
56 | 56 | { |
@@ -162,7 +162,7 @@ |
||
162 | 162 | * @param array $directories |
163 | 163 | * @param array $exclude |
164 | 164 | * @param Finder $finder |
165 | - * @return ClassLocator |
|
165 | + * @return InvocationLocator |
|
166 | 166 | */ |
167 | 167 | public function invocationLocator( |
168 | 168 | array $directories = [], |
@@ -106,7 +106,7 @@ |
||
106 | 106 | * @see AbstractWhere |
107 | 107 | * @param string|mixed $identifier Column or expression. |
108 | 108 | * @param mixed $variousA Operator or value. |
109 | - * @param mixed $variousB Value, if operator specified. |
|
109 | + * @param Parameter $variousB Value, if operator specified. |
|
110 | 110 | * @param mixed $variousC Required only in between statements. |
111 | 111 | * @return $this |
112 | 112 | * @throws BuilderException |
@@ -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 | { |