@@ -311,8 +311,8 @@ discard block |
||
| 311 | 311 | * own relations, loaders and schemas by altering ORM config. |
| 312 | 312 | * |
| 313 | 313 | * @param mixed $type |
| 314 | - * @param SchemaBuilder $builder |
|
| 315 | - * @param RecordSchema $record |
|
| 314 | + * @param Entities\SchemaBuilder $builder |
|
| 315 | + * @param Entities\Schemas\RecordSchema $record |
|
| 316 | 316 | * @param string $name |
| 317 | 317 | * @param array $definition |
| 318 | 318 | * @return Schemas\RelationInterface |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | * @param string $type Loader type (usually related to relation type). |
| 354 | 354 | * @param string $container Data segment associated with loader. |
| 355 | 355 | * @param array $definition |
| 356 | - * @param LoaderInterface|null $parent |
|
| 356 | + * @param null|Loader $parent |
|
| 357 | 357 | * @return Loader |
| 358 | 358 | */ |
| 359 | 359 | public function loader($type, $container, array $definition, Loader $parent = null) |
@@ -80,6 +80,9 @@ |
||
| 80 | 80 | ], $model->serializeData()); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $directory |
|
| 85 | + */ |
|
| 83 | 86 | protected function createLocator($directory) |
| 84 | 87 | { |
| 85 | 88 | $tokenizer = new Tokenizer(new FileManager(), new TokenizerConfig(), $this->createMemory()); |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | /** |
| 493 | 493 | * {@inheritdoc} |
| 494 | 494 | * |
| 495 | - * @return DocumentEntity[] |
|
| 495 | + * @return \ArrayIterator |
|
| 496 | 496 | */ |
| 497 | 497 | public function getIterator() |
| 498 | 498 | { |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | * Example: |
| 589 | 589 | * $user->cards->findOne(['active' => true]); |
| 590 | 590 | * |
| 591 | - * @param array|DocumentEntity $query |
|
| 591 | + * @param DocumentEntity $query |
|
| 592 | 592 | * |
| 593 | 593 | * @return null|DocumentEntity |
| 594 | 594 | */ |
@@ -42,7 +42,7 @@ |
||
| 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 | { |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | * |
| 264 | 264 | * @see AbstractWhere |
| 265 | 265 | * |
| 266 | - * @param string|mixed $joined Joined column or expression. |
|
| 266 | + * @param string $joined Joined column or expression. |
|
| 267 | 267 | * @param mixed $variousA Operator or value. |
| 268 | 268 | * @param mixed $variousB Value, if operator specified. |
| 269 | 269 | * @param mixed $variousC Required only in between statements. |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | * @param string $joiner Boolean joiner (AND | OR). |
| 347 | 347 | * @param array $parameters Set of parameters collected from where functions. |
| 348 | 348 | * @param array $tokens Array to aggregate compiled tokens. Reference. |
| 349 | - * @param \Closure|null|callable $wrapper Callback or closure used to wrap/collect every |
|
| 349 | + * @param callable $wrapper Callback or closure used to wrap/collect every |
|
| 350 | 350 | * potential parameter. |
| 351 | 351 | * |
| 352 | 352 | * @throws BuilderException |
@@ -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 = []) |
@@ -198,7 +198,6 @@ |
||
| 198 | 198 | /** |
| 199 | 199 | * {@inheritdoc} |
| 200 | 200 | * |
| 201 | - * @param string $class Class to be used to represent PDOStatement. |
|
| 202 | 201 | * @param array $args Class construction arguments, by default array of parameters. |
| 203 | 202 | * |
| 204 | 203 | * @return PDOResult |