commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Search
SearchNumberRangeValueBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Search
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
SearchNumberRangeValueBuilder
implements
Builder
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
(?
float
$gte)
168
{
169
$this->gte = $gte;
170
171
return
$this;
172
}
173
178
public
function
withGt
(?
float
$gt)
179
{
180
$this->gt = $gt;
181
182
return
$this;
183
}
184
189
public
function
withLte
(?
float
$lte)
190
{
191
$this->lte = $lte;
192
193
return
$this;
194
}
195
200
public
function
withLt
(?
float
$lt)
201
{
202
$this->lt = $lt;
203
204
return
$this;
205
}
206
207
208
public
function
build
():
SearchNumberRangeValue
209
{
210
return
new
SearchNumberRangeValueModel
(
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
():
SearchNumberRangeValueBuilder
222
{
223
return
new
self
();
224
}
225
}
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder
Definition:
SearchNumberRangeValueBuilder.php:22
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\getField
getField()
Definition:
SearchNumberRangeValueBuilder.php:69
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\getLte
getLte()
Definition:
SearchNumberRangeValueBuilder.php:116
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\withGt
withGt(?float $gt)
Definition:
SearchNumberRangeValueBuilder.php:178
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\getFieldType
getFieldType()
Definition:
SearchNumberRangeValueBuilder.php:89
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\build
build()
Definition:
SearchNumberRangeValueBuilder.php:208
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\withGte
withGte(?float $gte)
Definition:
SearchNumberRangeValueBuilder.php:167
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\withBoost
withBoost(?float $boost)
Definition:
SearchNumberRangeValueBuilder.php:145
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\of
static of()
Definition:
SearchNumberRangeValueBuilder.php:221
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\withFieldType
withFieldType(?string $fieldType)
Definition:
SearchNumberRangeValueBuilder.php:156
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\getGte
getGte()
Definition:
SearchNumberRangeValueBuilder.php:98
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\getLt
getLt()
Definition:
SearchNumberRangeValueBuilder.php:125
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\withField
withField(?string $field)
Definition:
SearchNumberRangeValueBuilder.php:134
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\getGt
getGt()
Definition:
SearchNumberRangeValueBuilder.php:107
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\withLt
withLt(?float $lt)
Definition:
SearchNumberRangeValueBuilder.php:200
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\withLte
withLte(?float $lte)
Definition:
SearchNumberRangeValueBuilder.php:189
Commercetools\Api\Models\Search\SearchNumberRangeValueBuilder\getBoost
getBoost()
Definition:
SearchNumberRangeValueBuilder.php:78
Commercetools\Api\Models\Search\SearchNumberRangeValueModel
Definition:
SearchNumberRangeValueModel.php:21
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\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Search
Definition:
SearchAndExpression.php:9
Generated by
1.9.1