1 | <?php |
||
20 | class ElementMetricQuery extends CacheableActiveQuery |
||
21 | { |
||
22 | use ElementAttribute, |
||
23 | AuditAttributes; |
||
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 | * return static |
||
62 | */ |
||
63 | public function dateCalculated($value) |
||
68 | |||
69 | /******************************************* |
||
70 | * ATTRIBUTES |
||
71 | *******************************************/ |
||
72 | |||
73 | /** |
||
74 | * @param int|int[]|string|string[]|null $id |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function id($id) |
||
82 | |||
83 | /** |
||
84 | * @param int|int[]|string|string[]|null $id |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function setId($id) |
||
91 | |||
92 | /** |
||
93 | * @param int|int[]|string|string[]|null $id |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function parentId($id) |
||
101 | |||
102 | /** |
||
103 | * @param int|int[]|string|string[]|null $id |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function setParentId($id) |
||
110 | |||
111 | /** |
||
112 | * @param float|float[]|string|string[]|null $score |
||
113 | * @return $this |
||
114 | */ |
||
115 | public function score($score) |
||
120 | |||
121 | /** |
||
122 | * @param float|float[]|string|string[]|null $score |
||
123 | * @return $this |
||
124 | */ |
||
125 | public function setScore($score) |
||
129 | |||
130 | /** |
||
131 | * @param float|float[]|string|string[]|null $weight |
||
132 | * @return $this |
||
133 | */ |
||
134 | public function weight($weight) |
||
139 | |||
140 | /** |
||
141 | * @param float|float[]|string|string[]|null $weight |
||
142 | * @return $this |
||
143 | */ |
||
144 | public function setWeight($weight) |
||
148 | |||
149 | /** |
||
150 | * @param string|string[]|null $version |
||
151 | * @return $this |
||
152 | */ |
||
153 | public function version($version) |
||
158 | |||
159 | /** |
||
160 | * @param string|string[]|null $version |
||
161 | * @return $this |
||
162 | */ |
||
163 | public function setVersion($version) |
||
167 | |||
168 | /** |
||
169 | * @param string|string[]|null $class |
||
170 | * @return $this |
||
171 | */ |
||
172 | public function class($class) |
||
177 | |||
178 | /** |
||
179 | * @param string|string[]|null $class |
||
180 | * @return $this |
||
181 | */ |
||
182 | public function setClass($class) |
||
186 | |||
187 | /******************************************* |
||
188 | * PREPARE |
||
189 | *******************************************/ |
||
190 | |||
191 | /** |
||
192 | * @inheritdoc |
||
193 | */ |
||
194 | public function prepare($builder) |
||
202 | |||
203 | /******************************************* |
||
204 | * PREPARE PARAMS |
||
205 | *******************************************/ |
||
206 | |||
207 | /** |
||
208 | * Apply environment params |
||
209 | */ |
||
210 | protected function prepareParams() |
||
228 | } |
||
229 |