commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
OrderSearchAnyValueBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Order
;
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
OrderSearchAnyValueBuilder
implements
Builder
22
{
27
private
$field;
28
33
private
$boost;
34
39
private
$customType;
40
45
private
$value;
46
51
private
$language;
52
57
private
$caseInsensitive;
58
63
public
function
getField
()
64
{
65
return
$this->field;
66
}
67
72
public
function
getBoost
()
73
{
74
return
$this->boost;
75
}
76
83
public
function
getCustomType
()
84
{
85
return
$this->customType;
86
}
87
92
public
function
getValue
()
93
{
94
return
$this->value;
95
}
96
101
public
function
getLanguage
()
102
{
103
return
$this->language;
104
}
105
110
public
function
getCaseInsensitive
()
111
{
112
return
$this->caseInsensitive;
113
}
114
119
public
function
withField
(?
string
$field)
120
{
121
$this->field = $field;
122
123
return
$this;
124
}
125
130
public
function
withBoost
(?
int
$boost)
131
{
132
$this->boost = $boost;
133
134
return
$this;
135
}
136
141
public
function
withCustomType
(?
string
$customType)
142
{
143
$this->customType = $customType;
144
145
return
$this;
146
}
147
152
public
function
withValue
($value)
153
{
154
$this->value = $value;
155
156
return
$this;
157
}
158
163
public
function
withLanguage
(?
string
$language)
164
{
165
$this->language = $language;
166
167
return
$this;
168
}
169
174
public
function
withCaseInsensitive
(?
bool
$caseInsensitive)
175
{
176
$this->caseInsensitive = $caseInsensitive;
177
178
return
$this;
179
}
180
181
182
public
function
build
():
OrderSearchAnyValue
183
{
184
return
new
OrderSearchAnyValueModel
(
185
$this->field,
186
$this->boost,
187
$this->customType,
188
$this->value,
189
$this->language,
190
$this->caseInsensitive
191
);
192
}
193
194
public
static
function
of
():
OrderSearchAnyValueBuilder
195
{
196
return
new
self
();
197
}
198
}
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder
Definition:
OrderSearchAnyValueBuilder.php:22
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\withBoost
withBoost(?int $boost)
Definition:
OrderSearchAnyValueBuilder.php:130
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\getField
getField()
Definition:
OrderSearchAnyValueBuilder.php:63
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\getCustomType
getCustomType()
Definition:
OrderSearchAnyValueBuilder.php:83
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\getBoost
getBoost()
Definition:
OrderSearchAnyValueBuilder.php:72
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\withCustomType
withCustomType(?string $customType)
Definition:
OrderSearchAnyValueBuilder.php:141
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\of
static of()
Definition:
OrderSearchAnyValueBuilder.php:194
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\getLanguage
getLanguage()
Definition:
OrderSearchAnyValueBuilder.php:101
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\withLanguage
withLanguage(?string $language)
Definition:
OrderSearchAnyValueBuilder.php:163
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\withValue
withValue($value)
Definition:
OrderSearchAnyValueBuilder.php:152
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\getValue
getValue()
Definition:
OrderSearchAnyValueBuilder.php:92
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\withCaseInsensitive
withCaseInsensitive(?bool $caseInsensitive)
Definition:
OrderSearchAnyValueBuilder.php:174
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\getCaseInsensitive
getCaseInsensitive()
Definition:
OrderSearchAnyValueBuilder.php:110
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\withField
withField(?string $field)
Definition:
OrderSearchAnyValueBuilder.php:119
Commercetools\Api\Models\Order\OrderSearchAnyValueBuilder\build
build()
Definition:
OrderSearchAnyValueBuilder.php:182
Commercetools\Api\Models\Order\OrderSearchAnyValueModel
Definition:
OrderSearchAnyValueModel.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\Order\OrderSearchAnyValue
Definition:
OrderSearchAnyValue.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Order
Definition:
CustomLineItemImportDraft.php:9
Generated by
1.9.1