1 | <?php |
||
20 | class ElementMetricQuery extends CacheableActiveQuery |
||
21 | { |
||
22 | use ElementAttributeTrait, |
||
23 | AuditAttributesTrait; |
||
24 | |||
25 | /** |
||
26 | * @var int|int[]|string|string[]|null |
||
27 | */ |
||
28 | public $id; |
||
29 | |||
30 | /** |
||
31 | * @var int|int[]|string|string[]|null |
||
32 | */ |
||
33 | public $parentId = ':empty:'; |
||
34 | |||
35 | /** |
||
36 | * @var float|float[]|string|string[]|null |
||
37 | */ |
||
38 | public $score; |
||
39 | |||
40 | /** |
||
41 | * @var float|float[]|string|string[]|null |
||
42 | */ |
||
43 | public $weight; |
||
44 | |||
45 | /** |
||
46 | * @var string|string[]|null |
||
47 | */ |
||
48 | public $version; |
||
49 | |||
50 | /** |
||
51 | * @var string|string[]|null |
||
52 | */ |
||
53 | public $class; |
||
54 | |||
55 | /** |
||
56 | * @var mixed |
||
57 | */ |
||
58 | public $dateCalculated; |
||
59 | |||
60 | /** |
||
61 | * @var array |
||
62 | */ |
||
63 | public $orderBy = [ |
||
64 | 'dateCalculated' => SORT_DESC |
||
65 | ]; |
||
66 | |||
67 | |||
68 | /******************************************* |
||
69 | * ATTRIBUTES |
||
70 | *******************************************/ |
||
71 | |||
72 | /** |
||
73 | * @param int|int[]|string|string[]|null $id |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function id($id) |
||
81 | |||
82 | /** |
||
83 | * @param int|int[]|string|string[]|null $id |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function setId($id) |
||
90 | |||
91 | /** |
||
92 | * @param int|int[]|string|string[]|null $id |
||
93 | * @return $this |
||
94 | */ |
||
95 | public function parentId($id) |
||
100 | |||
101 | /** |
||
102 | * @param int|int[]|string|string[]|null $id |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setParentId($id) |
||
109 | |||
110 | /** |
||
111 | * @param float|float[]|string|string[]|null $score |
||
112 | * @return $this |
||
113 | */ |
||
114 | public function score($score) |
||
119 | |||
120 | /** |
||
121 | * @param float|float[]|string|string[]|null $score |
||
122 | * @return $this |
||
123 | */ |
||
124 | public function setScore($score) |
||
128 | |||
129 | /** |
||
130 | * @param float|float[]|string|string[]|null $weight |
||
131 | * @return $this |
||
132 | */ |
||
133 | public function weight($weight) |
||
138 | |||
139 | /** |
||
140 | * @param float|float[]|string|string[]|null $weight |
||
141 | * @return $this |
||
142 | */ |
||
143 | public function setWeight($weight) |
||
147 | |||
148 | /** |
||
149 | * @param string|string[]|null $version |
||
150 | * @return $this |
||
151 | */ |
||
152 | public function version($version) |
||
157 | |||
158 | /** |
||
159 | * @param string|string[]|null $version |
||
160 | * @return $this |
||
161 | */ |
||
162 | public function setVersion($version) |
||
166 | |||
167 | /** |
||
168 | * @param string|string[]|null $class |
||
169 | * @return $this |
||
170 | */ |
||
171 | public function class($class) |
||
176 | |||
177 | /** |
||
178 | * @param string|string[]|null $class |
||
179 | * @return $this |
||
180 | */ |
||
181 | public function setClass($class) |
||
185 | |||
186 | /** |
||
187 | * @param mixed $value |
||
188 | * @return $this |
||
189 | */ |
||
190 | public function dateCalculated($value) |
||
195 | |||
196 | /** |
||
197 | * @param mixed $value |
||
198 | * @return $this |
||
199 | */ |
||
200 | public function setDateCalculated($value) |
||
204 | |||
205 | /******************************************* |
||
206 | * PREPARE |
||
207 | *******************************************/ |
||
208 | |||
209 | /** |
||
210 | * @inheritdoc |
||
211 | */ |
||
212 | public function prepare($builder) |
||
220 | |||
221 | /******************************************* |
||
222 | * PREPARE PARAMS |
||
223 | *******************************************/ |
||
224 | |||
225 | /** |
||
226 | * Apply environment params |
||
227 | */ |
||
228 | protected function prepareParams() |
||
246 | } |
||
247 |