1 | <?php |
||
18 | trait ObjectAttributeTrait |
||
19 | { |
||
20 | /** |
||
21 | * @var string|string[]|null |
||
22 | */ |
||
23 | public $object; |
||
24 | |||
25 | /** |
||
26 | * Adds an additional WHERE condition to the existing one. |
||
27 | * The new condition and the existing one will be joined using the `AND` operator. |
||
28 | * @param string|array|Expression $condition the new WHERE condition. Please refer to [[where()]] |
||
29 | * on how to specify this parameter. |
||
30 | * @param array $params the parameters (name => value) to be bound to the query. |
||
31 | * @return $this the query object itself |
||
32 | * @see where() |
||
33 | * @see orWhere() |
||
34 | */ |
||
35 | abstract public function andWhere($condition, $params = []); |
||
36 | |||
37 | /** |
||
38 | * @param string|string[]|null $value |
||
39 | * @return static |
||
40 | */ |
||
41 | public function setObjectId($value) |
||
45 | |||
46 | /** |
||
47 | * @param string|string[]|null $value |
||
48 | * @return static |
||
49 | */ |
||
50 | public function objectId($value) |
||
54 | |||
55 | /** |
||
56 | * @param string|string[]|null $value |
||
57 | * @return static |
||
58 | */ |
||
59 | public function setObject($value) |
||
64 | |||
65 | /** |
||
66 | * @param string|string[]|null $value |
||
67 | * @return static |
||
68 | */ |
||
69 | public function object($value) |
||
73 | |||
74 | /** |
||
75 | * Apply query specific conditions |
||
76 | */ |
||
77 | protected function applyObjectConditions() |
||
83 | } |
||
84 |