1 | <?php |
||
19 | class ElementMetricQuery extends CacheableActiveQuery |
||
20 | { |
||
21 | use ElementAttribute; |
||
22 | |||
23 | /** |
||
24 | * @var int|int[]|string|string[]|null |
||
25 | */ |
||
26 | public $id; |
||
27 | |||
28 | /** |
||
29 | * @var int|int[]|string|string[]|null |
||
30 | */ |
||
31 | public $parentId = ':empty:'; |
||
32 | |||
33 | /** |
||
34 | * @var float|float[]|string|string[]|null |
||
35 | */ |
||
36 | public $score; |
||
37 | |||
38 | /** |
||
39 | * @var float|float[]|string|string[]|null |
||
40 | */ |
||
41 | public $weight; |
||
42 | |||
43 | /** |
||
44 | * @var string|string[]|null |
||
45 | */ |
||
46 | public $version; |
||
47 | |||
48 | /** |
||
49 | * @var string|string[]|null |
||
50 | */ |
||
51 | public $class; |
||
52 | |||
53 | /******************************************* |
||
54 | * ATTRIBUTES |
||
55 | *******************************************/ |
||
56 | |||
57 | /** |
||
58 | * @param int|int[]|string|string[]|null $id |
||
59 | * @return $this |
||
60 | */ |
||
61 | public function id($id) |
||
66 | |||
67 | /** |
||
68 | * @param int|int[]|string|string[]|null $id |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function setId($id) |
||
75 | |||
76 | /** |
||
77 | * @param int|int[]|string|string[]|null $id |
||
78 | * @return $this |
||
79 | */ |
||
80 | public function parentId($id) |
||
85 | |||
86 | /** |
||
87 | * @param int|int[]|string|string[]|null $id |
||
88 | * @return $this |
||
89 | */ |
||
90 | public function setParentId($id) |
||
94 | |||
95 | /** |
||
96 | * @param float|float[]|string|string[]|null $score |
||
97 | * @return $this |
||
98 | */ |
||
99 | public function score($score) |
||
104 | |||
105 | /** |
||
106 | * @param float|float[]|string|string[]|null $score |
||
107 | * @return $this |
||
108 | */ |
||
109 | public function setScore($score) |
||
113 | |||
114 | /** |
||
115 | * @param float|float[]|string|string[]|null $weight |
||
116 | * @return $this |
||
117 | */ |
||
118 | public function weight($weight) |
||
123 | |||
124 | /** |
||
125 | * @param float|float[]|string|string[]|null $weight |
||
126 | * @return $this |
||
127 | */ |
||
128 | public function setWeight($weight) |
||
132 | |||
133 | /** |
||
134 | * @param string|string[]|null $version |
||
135 | * @return $this |
||
136 | */ |
||
137 | public function version($version) |
||
142 | |||
143 | /** |
||
144 | * @param string|string[]|null $version |
||
145 | * @return $this |
||
146 | */ |
||
147 | public function setVersion($version) |
||
151 | |||
152 | /** |
||
153 | * @param string|string[]|null $class |
||
154 | * @return $this |
||
155 | */ |
||
156 | public function class($class) |
||
161 | |||
162 | /** |
||
163 | * @param string|string[]|null $class |
||
164 | * @return $this |
||
165 | */ |
||
166 | public function setClass($class) |
||
170 | |||
171 | /******************************************* |
||
172 | * PREPARE |
||
173 | *******************************************/ |
||
174 | |||
175 | /** |
||
176 | * @inheritdoc |
||
177 | */ |
||
178 | public function prepare($builder) |
||
185 | |||
186 | /******************************************* |
||
187 | * PREPARE PARAMS |
||
188 | *******************************************/ |
||
189 | |||
190 | /** |
||
191 | * Apply environment params |
||
192 | */ |
||
193 | protected function prepareParams() |
||
207 | } |
||
208 |