@@ -23,7 +23,7 @@ |
||
23 | 23 | use ExpressionBuilderTrait; |
24 | 24 | |
25 | 25 | /** |
26 | - * @param ExpressionInterface|ConditionExpression $expression |
|
26 | + * @param ExpressionInterface $expression |
|
27 | 27 | * @inheritDoc |
28 | 28 | */ |
29 | 29 | public function build(ExpressionInterface $expression, array &$params = []) |
@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * Solve models job. |
57 | 57 | * |
58 | - * @param array|\yii\db\ActiveRecord[] $models need to be execute searchable index job. |
|
58 | + * @param \yii\db\BaseActiveRecord[] $models need to be execute searchable index job. |
|
59 | 59 | */ |
60 | 60 | abstract protected function resolve(array $models): void; |
61 | 61 | } |
@@ -284,7 +284,7 @@ |
||
284 | 284 | * |
285 | 285 | * @param Connection|null $db use to get database info. |
286 | 286 | * @param array $config of [[\vxm\searchable\TNTSearch]]. |
287 | - * @return object|TNTSearch |
|
287 | + * @return TNTSearch |
|
288 | 288 | * @throws \yii\base\InvalidConfigException |
289 | 289 | */ |
290 | 290 | public function createTNTSearch(?Connection $db = null, array $config = []): TNTSearch |
@@ -8,12 +8,10 @@ |
||
8 | 8 | namespace vxm\searchable; |
9 | 9 | |
10 | 10 | use Yii; |
11 | - |
|
12 | 11 | use yii\base\Component; |
13 | 12 | use yii\db\Connection; |
14 | 13 | use yii\di\Instance; |
15 | 14 | use yii\queue\Queue; |
16 | - |
|
17 | 15 | use vxm\searchable\queue\DeleteSearchable; |
18 | 16 | use vxm\searchable\queue\MakeSearchable; |
19 | 17 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | /** |
60 | 60 | * Get searchable support full-text search for this model class. |
61 | 61 | * |
62 | - * @return object|Searchable |
|
62 | + * @return Searchable |
|
63 | 63 | * @throws \yii\base\InvalidConfigException |
64 | 64 | */ |
65 | 65 | public static function getSearchable(): Searchable |
@@ -8,10 +8,8 @@ |
||
8 | 8 | namespace vxm\searchable; |
9 | 9 | |
10 | 10 | use Yii; |
11 | - |
|
12 | 11 | use yii\db\ActiveQueryInterface; |
13 | 12 | use yii\db\Exception; |
14 | - |
|
15 | 13 | use vxm\searchable\expression\Condition; |
16 | 14 | use vxm\searchable\expression\ConditionBuilder; |
17 | 15 | use vxm\searchable\expression\OrderBy; |