@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Psy\Shell; |
5 | 5 | use Wandu\Console\Command; |
6 | -use Wandu\Q\Queue; |
|
7 | 6 | |
8 | 7 | class PsyshCommand extends Command |
9 | 8 | { |
@@ -109,7 +109,7 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
112 | - * @param mixed $method |
|
112 | + * @param string|null $method |
|
113 | 113 | * @return string |
114 | 114 | */ |
115 | 115 | protected function filterMethod($method) |
@@ -40,16 +40,19 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * @param string $key |
42 | 42 | * @param mixed $value |
43 | + * @return void |
|
43 | 44 | */ |
44 | 45 | public function set($key, $value); |
45 | 46 | |
46 | 47 | /** |
47 | 48 | * @param string[] ...$keys |
49 | + * @return void |
|
48 | 50 | */ |
49 | 51 | public function remove(...$keys); |
50 | 52 | |
51 | 53 | /** |
52 | 54 | * @param string[] ...$keys |
55 | + * @return boolean |
|
53 | 56 | */ |
54 | 57 | public function has(...$keys); |
55 | 58 | |
@@ -80,7 +83,7 @@ discard block |
||
80 | 83 | |
81 | 84 | /** |
82 | 85 | * @param callable $handler |
83 | - * @return \Wandu\Collection\Contracts\MapInterface<\Wandu\Collection\Contracts\ListInterface> |
|
86 | + * @return \Wandu\Collection\ArrayMap |
|
84 | 87 | */ |
85 | 88 | public function groupBy(callable $handler); |
86 | 89 |
@@ -109,7 +109,7 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
112 | - * @param mixed $name |
|
112 | + * @param string $name |
|
113 | 113 | */ |
114 | 114 | protected function validNameArgument($name) |
115 | 115 | { |
@@ -290,6 +290,9 @@ |
||
290 | 290 | return $this; |
291 | 291 | } |
292 | 292 | |
293 | + /** |
|
294 | + * @param string $className |
|
295 | + */ |
|
293 | 296 | protected function createDescriptor($name, ResolverInterface $resolver, $className = null): Descriptor |
294 | 297 | { |
295 | 298 | $this->destroy($name); |
@@ -13,6 +13,9 @@ |
||
13 | 13 | /** @var string */ |
14 | 14 | protected $className; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $className |
|
18 | + */ |
|
16 | 19 | public function __construct($className) |
17 | 20 | { |
18 | 21 | $this->className = $className; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use RuntimeException; |
6 | 6 | use SplFileInfo; |
7 | 7 | use Wandu\Database\Contracts\Migrator\MigrateAdapterInterface; |
8 | -use Wandu\Database\Contracts\Migrator\MigrationInterface; |
|
9 | 8 | use Wandu\DI\ContainerInterface; |
10 | 9 | |
11 | 10 | class Migrator |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | } |
369 | 369 | |
370 | 370 | /** |
371 | - * @param string|\Wandu\Database\Contracts\ExpressionInterface $name |
|
371 | + * @param string $name |
|
372 | 372 | * @param string $type |
373 | 373 | * @param array $attributes |
374 | 374 | * @return \Wandu\Database\Query\Expression\ColumnExpression|\Wandu\Database\Contracts\ExpressionInterface |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | } |
418 | 418 | |
419 | 419 | /** |
420 | - * @param array|string $column |
|
420 | + * @param string $column |
|
421 | 421 | * @param string $name |
422 | 422 | * @return \Wandu\Database\Query\Expression\ConstraintExpression |
423 | 423 | */ |
@@ -250,7 +250,7 @@ |
||
250 | 250 | |
251 | 251 | /** |
252 | 252 | * @param mixed $entity |
253 | - * @return string|int |
|
253 | + * @return null|callable |
|
254 | 254 | */ |
255 | 255 | private function getIdentifier($entity) |
256 | 256 | { |