commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Search
SearchLongRangeValueBuilder.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
SearchLongRangeValueBuilder
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
(?
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
}
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder
Definition:
SearchLongRangeValueBuilder.php:22
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\withFieldType
withFieldType(?string $fieldType)
Definition:
SearchLongRangeValueBuilder.php:156
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\getGt
getGt()
Definition:
SearchLongRangeValueBuilder.php:107
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\getLte
getLte()
Definition:
SearchLongRangeValueBuilder.php:116
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\withLt
withLt(?int $lt)
Definition:
SearchLongRangeValueBuilder.php:200
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\getBoost
getBoost()
Definition:
SearchLongRangeValueBuilder.php:78
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\withField
withField(?string $field)
Definition:
SearchLongRangeValueBuilder.php:134
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\getField
getField()
Definition:
SearchLongRangeValueBuilder.php:69
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\withBoost
withBoost(?float $boost)
Definition:
SearchLongRangeValueBuilder.php:145
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\of
static of()
Definition:
SearchLongRangeValueBuilder.php:221
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\build
build()
Definition:
SearchLongRangeValueBuilder.php:208
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\getLt
getLt()
Definition:
SearchLongRangeValueBuilder.php:125
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\withGte
withGte(?int $gte)
Definition:
SearchLongRangeValueBuilder.php:167
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\getGte
getGte()
Definition:
SearchLongRangeValueBuilder.php:98
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\withGt
withGt(?int $gt)
Definition:
SearchLongRangeValueBuilder.php:178
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\withLte
withLte(?int $lte)
Definition:
SearchLongRangeValueBuilder.php:189
Commercetools\Api\Models\Search\SearchLongRangeValueBuilder\getFieldType
getFieldType()
Definition:
SearchLongRangeValueBuilder.php:89
Commercetools\Api\Models\Search\SearchLongRangeValueModel
Definition:
SearchLongRangeValueModel.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\SearchLongRangeValue
Definition:
SearchLongRangeValue.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