commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Search
SearchNumberRangeValueModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Search
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
SearchNumberRangeValueModel
extends
JsonObjectModel
implements
SearchNumberRangeValue
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
}
Commercetools\Api\Models\Search\SearchNumberRangeValueModel
Definition
SearchNumberRangeValueModel.php:21
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\setLte
setLte(?float $lte)
Definition
SearchNumberRangeValueModel.php:258
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\setGt
setGt(?float $gt)
Definition
SearchNumberRangeValueModel.php:250
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\getBoost
getBoost()
Definition
SearchNumberRangeValueModel.php:108
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\$lt
$lt
Definition
SearchNumberRangeValueModel.php:62
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\setGte
setGte(?float $gte)
Definition
SearchNumberRangeValueModel.php:242
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\setFieldType
setFieldType(?string $fieldType)
Definition
SearchNumberRangeValueModel.php:234
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\$gte
$gte
Definition
SearchNumberRangeValueModel.php:44
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\$field
$field
Definition
SearchNumberRangeValueModel.php:26
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\setLt
setLt(?float $lt)
Definition
SearchNumberRangeValueModel.php:266
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\$gt
$gt
Definition
SearchNumberRangeValueModel.php:50
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\$lte
$lte
Definition
SearchNumberRangeValueModel.php:56
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\setField
setField(?string $field)
Definition
SearchNumberRangeValueModel.php:218
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\getField
getField()
Definition
SearchNumberRangeValueModel.php:90
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\getLt
getLt()
Definition
SearchNumberRangeValueModel.php:200
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\$boost
$boost
Definition
SearchNumberRangeValueModel.php:32
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\setBoost
setBoost(?float $boost)
Definition
SearchNumberRangeValueModel.php:226
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\getFieldType
getFieldType()
Definition
SearchNumberRangeValueModel.php:128
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\getGt
getGt()
Definition
SearchNumberRangeValueModel.php:164
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\$fieldType
$fieldType
Definition
SearchNumberRangeValueModel.php:38
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\getLte
getLte()
Definition
SearchNumberRangeValueModel.php:182
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\__construct
__construct(?string $field=null, ?float $boost=null, ?string $fieldType=null, ?float $gte=null, ?float $gt=null, ?float $lte=null, ?float $lt=null)
Definition
SearchNumberRangeValueModel.php:68
Commercetools\Api\Models\Search\SearchNumberRangeValueModel\getGte
getGte()
Definition
SearchNumberRangeValueModel.php:146
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Search\SearchNumberRangeValue
Definition
SearchNumberRangeValue.php:15
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Search
Definition
SearchAndExpression.php:9
Generated by
1.9.8