commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
SearchLongRangeValueBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $field;
28
33 private $boost;
34
39 private $fieldType;
40
45 private $gte;
46
51 private $gt;
52
57 private $lte;
58
63 private $lt;
64
69 public function getField()
70 {
71 return $this->field;
72 }
73
78 public function getBoost()
79 {
80 return $this->boost;
81 }
82
89 public function getFieldType()
90 {
91 return $this->fieldType;
92 }
93
98 public function getGte()
99 {
100 return $this->gte;
101 }
102
107 public function getGt()
108 {
109 return $this->gt;
110 }
111
116 public function getLte()
117 {
118 return $this->lte;
119 }
120
125 public function getLt()
126 {
127 return $this->lt;
128 }
129
134 public function withField(?string $field)
135 {
136 $this->field = $field;
137
138 return $this;
139 }
140
145 public function withBoost(?float $boost)
146 {
147 $this->boost = $boost;
148
149 return $this;
150 }
151
156 public function withFieldType(?string $fieldType)
157 {
158 $this->fieldType = $fieldType;
159
160 return $this;
161 }
162
167 public function withGte(?int $gte)
168 {
169 $this->gte = $gte;
170
171 return $this;
172 }
173
178 public function withGt(?int $gt)
179 {
180 $this->gt = $gt;
181
182 return $this;
183 }
184
189 public function withLte(?int $lte)
190 {
191 $this->lte = $lte;
192
193 return $this;
194 }
195
200 public function withLt(?int $lt)
201 {
202 $this->lt = $lt;
203
204 return $this;
205 }
206
207
208 public function build(): SearchLongRangeValue
209 {
210 return new SearchLongRangeValueModel(
211 $this->field,
212 $this->boost,
213 $this->fieldType,
214 $this->gte,
215 $this->gt,
216 $this->lte,
217 $this->lt
218 );
219 }
220
221 public static function of(): SearchLongRangeValueBuilder
222 {
223 return new self();
224 }
225}