1 | <?php |
||
14 | trait ObjectAttributeTrait |
||
15 | { |
||
16 | /** |
||
17 | * @var string|string[]|null |
||
18 | */ |
||
19 | public $object; |
||
20 | |||
21 | /** |
||
22 | * Adds an additional WHERE condition to the existing one. |
||
23 | * The new condition and the existing one will be joined using the `AND` operator. |
||
24 | * @param string|array|Expression $condition the new WHERE condition. Please refer to [[where()]] |
||
25 | * on how to specify this parameter. |
||
26 | * @param array $params the parameters (name => value) to be bound to the query. |
||
27 | * @return $this the query object itself |
||
28 | * @see where() |
||
29 | * @see orWhere() |
||
30 | */ |
||
31 | abstract public function andWhere($condition, $params = []); |
||
32 | |||
33 | /** |
||
34 | * @param string|string[]|null $value |
||
35 | * @return static |
||
36 | */ |
||
37 | public function setObjectId($value) |
||
41 | |||
42 | /** |
||
43 | * @param string|string[]|null $value |
||
44 | * @return static |
||
45 | */ |
||
46 | public function objectId($value) |
||
50 | |||
51 | /** |
||
52 | * @param string|string[]|null $value |
||
53 | * @return static |
||
54 | */ |
||
55 | public function setObject($value) |
||
60 | |||
61 | /** |
||
62 | * @param string|string[]|null $value |
||
63 | * @return static |
||
64 | */ |
||
65 | public function object($value) |
||
69 | |||
70 | /** |
||
71 | * Apply query specific conditions |
||
72 | */ |
||
73 | protected function applyObjectConditions() |
||
79 | } |
||
80 |