commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
SearchNumberRangeValueModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
26 protected $field;
27
32 protected $boost;
33
38 protected $fieldType;
39
44 protected $gte;
45
50 protected $gt;
51
56 protected $lte;
57
62 protected $lt;
63
64
68 public function __construct(
69 ?string $field = null,
70 ?float $boost = null,
71 ?string $fieldType = null,
72 ?float $gte = null,
73 ?float $gt = null,
74 ?float $lte = null,
75 ?float $lt = null
76 ) {
77 $this->field = $field;
78 $this->boost = $boost;
79 $this->fieldType = $fieldType;
80 $this->gte = $gte;
81 $this->gt = $gt;
82 $this->lte = $lte;
83 $this->lt = $lt;
84 }
85
90 public function getField()
91 {
92 if (is_null($this->field)) {
94 $data = $this->raw(self::FIELD_FIELD);
95 if (is_null($data)) {
96 return null;
97 }
98 $this->field = (string) $data;
99 }
100
101 return $this->field;
102 }
103
108 public function getBoost()
109 {
110 if (is_null($this->boost)) {
112 $data = $this->raw(self::FIELD_BOOST);
113 if (is_null($data)) {
114 return null;
115 }
116 $this->boost = (float) $data;
117 }
118
119 return $this->boost;
120 }
121
128 public function getFieldType()
129 {
130 if (is_null($this->fieldType)) {
132 $data = $this->raw(self::FIELD_FIELD_TYPE);
133 if (is_null($data)) {
134 return null;
135 }
136 $this->fieldType = (string) $data;
137 }
138
139 return $this->fieldType;
140 }
141
146 public function getGte()
147 {
148 if (is_null($this->gte)) {
150 $data = $this->raw(self::FIELD_GTE);
151 if (is_null($data)) {
152 return null;
153 }
154 $this->gte = (float) $data;
155 }
156
157 return $this->gte;
158 }
159
164 public function getGt()
165 {
166 if (is_null($this->gt)) {
168 $data = $this->raw(self::FIELD_GT);
169 if (is_null($data)) {
170 return null;
171 }
172 $this->gt = (float) $data;
173 }
174
175 return $this->gt;
176 }
177
182 public function getLte()
183 {
184 if (is_null($this->lte)) {
186 $data = $this->raw(self::FIELD_LTE);
187 if (is_null($data)) {
188 return null;
189 }
190 $this->lte = (float) $data;
191 }
192
193 return $this->lte;
194 }
195
200 public function getLt()
201 {
202 if (is_null($this->lt)) {
204 $data = $this->raw(self::FIELD_LT);
205 if (is_null($data)) {
206 return null;
207 }
208 $this->lt = (float) $data;
209 }
210
211 return $this->lt;
212 }
213
214
218 public function setField(?string $field): void
219 {
220 $this->field = $field;
221 }
222
226 public function setBoost(?float $boost): void
227 {
228 $this->boost = $boost;
229 }
230
234 public function setFieldType(?string $fieldType): void
235 {
236 $this->fieldType = $fieldType;
237 }
238
242 public function setGte(?float $gte): void
243 {
244 $this->gte = $gte;
245 }
246
250 public function setGt(?float $gt): void
251 {
252 $this->gt = $gt;
253 }
254
258 public function setLte(?float $lte): void
259 {
260 $this->lte = $lte;
261 }
262
266 public function setLt(?float $lt): void
267 {
268 $this->lt = $lt;
269 }
270}
__construct(?string $field=null, ?float $boost=null, ?string $fieldType=null, ?float $gte=null, ?float $gt=null, ?float $lte=null, ?float $lt=null)