1 | <?php |
||
20 | abstract class Expression extends BaseObject implements ExpressionInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var \yii\db\ActiveQuery |
||
24 | */ |
||
25 | public $query; |
||
26 | |||
27 | /** |
||
28 | * @var int[]|string[] |
||
29 | */ |
||
30 | public $ids = []; |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | * @throws InvalidConfigException |
||
35 | */ |
||
36 | 4 | public function init() |
|
48 | |||
49 | /** |
||
50 | * Creating an specific expression to apply to query. |
||
51 | * |
||
52 | * @return ExpressionInterface apply to query. |
||
53 | */ |
||
54 | abstract public function getExpression(): ExpressionInterface; |
||
55 | |||
56 | /** |
||
57 | * Get pretty searchable key via model with an alias of the table. |
||
58 | * |
||
59 | * @return string the searchable key name |
||
60 | */ |
||
61 | 4 | protected function searchableKey(): string |
|
69 | |||
70 | /** |
||
71 | * Returns the table name and the table alias for [[query::modelClass]]. |
||
72 | * This method extract from \yii\db\ActiveQuery. |
||
73 | * |
||
74 | * @return array the table name and the table alias. |
||
75 | */ |
||
76 | 4 | private function getTableNameAndAlias(): array |
|
103 | |||
104 | } |
||
105 |