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
Order
OrderSearchAnyValueModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Order
;
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
OrderSearchAnyValueModel
extends
JsonObjectModel
implements
OrderSearchAnyValue
21
{
26
protected
$field
;
27
32
protected
$boost
;
33
38
protected
$customType
;
39
44
protected
$value
;
45
50
protected
$language
;
51
56
protected
$caseInsensitive
;
57
58
62
public
function
__construct
(
63
?
string
$field
=
null
,
64
?
int
$boost
=
null
,
65
?
string
$customType
=
null
,
66
$value
=
null
,
67
?
string
$language
=
null
,
68
?
bool
$caseInsensitive
=
null
69
) {
70
$this->field =
$field
;
71
$this->boost =
$boost
;
72
$this->customType =
$customType
;
73
$this->value =
$value
;
74
$this->language =
$language
;
75
$this->caseInsensitive =
$caseInsensitive
;
76
}
77
82
public
function
getField
()
83
{
84
if
(is_null($this->field)) {
86
$data = $this->
raw
(self::FIELD_FIELD);
87
if
(is_null($data)) {
88
return
null
;
89
}
90
$this->field = (string) $data;
91
}
92
93
return
$this->field
;
94
}
95
100
public
function
getBoost
()
101
{
102
if
(is_null($this->boost)) {
104
$data = $this->
raw
(self::FIELD_BOOST);
105
if
(is_null($data)) {
106
return
null
;
107
}
108
$this->boost = (int) $data;
109
}
110
111
return
$this->boost
;
112
}
113
120
public
function
getCustomType
()
121
{
122
if
(is_null($this->customType)) {
124
$data = $this->
raw
(self::FIELD_CUSTOM_TYPE);
125
if
(is_null($data)) {
126
return
null
;
127
}
128
$this->customType = (string) $data;
129
}
130
131
return
$this->customType
;
132
}
133
138
public
function
getValue
()
139
{
140
if
(is_null($this->value)) {
142
$data = $this->
raw
(self::FIELD_VALUE);
143
if
(is_null($data)) {
144
return
null
;
145
}
146
$this->value = $data;
147
}
148
149
return
$this->value
;
150
}
151
156
public
function
getLanguage
()
157
{
158
if
(is_null($this->language)) {
160
$data = $this->
raw
(self::FIELD_LANGUAGE);
161
if
(is_null($data)) {
162
return
null
;
163
}
164
$this->language = (string) $data;
165
}
166
167
return
$this->language
;
168
}
169
174
public
function
getCaseInsensitive
()
175
{
176
if
(is_null($this->caseInsensitive)) {
178
$data = $this->
raw
(self::FIELD_CASE_INSENSITIVE);
179
if
(is_null($data)) {
180
return
null
;
181
}
182
$this->caseInsensitive = (bool) $data;
183
}
184
185
return
$this->caseInsensitive
;
186
}
187
188
192
public
function
setField
(?
string
$field
): void
193
{
194
$this->field =
$field
;
195
}
196
200
public
function
setBoost
(?
int
$boost
): void
201
{
202
$this->boost =
$boost
;
203
}
204
208
public
function
setCustomType
(?
string
$customType
): void
209
{
210
$this->customType =
$customType
;
211
}
212
216
public
function
setValue
(
$value
): void
217
{
218
$this->value =
$value
;
219
}
220
224
public
function
setLanguage
(?
string
$language
): void
225
{
226
$this->language =
$language
;
227
}
228
232
public
function
setCaseInsensitive
(?
bool
$caseInsensitive
): void
233
{
234
$this->caseInsensitive =
$caseInsensitive
;
235
}
236
}
Commercetools\Api\Models\Order\OrderSearchAnyValueModel
Definition
OrderSearchAnyValueModel.php:21
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\setBoost
setBoost(?int $boost)
Definition
OrderSearchAnyValueModel.php:200
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\$language
$language
Definition
OrderSearchAnyValueModel.php:50
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\$boost
$boost
Definition
OrderSearchAnyValueModel.php:32
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\getCaseInsensitive
getCaseInsensitive()
Definition
OrderSearchAnyValueModel.php:174
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\$field
$field
Definition
OrderSearchAnyValueModel.php:26
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\$customType
$customType
Definition
OrderSearchAnyValueModel.php:38
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\getBoost
getBoost()
Definition
OrderSearchAnyValueModel.php:100
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\setCustomType
setCustomType(?string $customType)
Definition
OrderSearchAnyValueModel.php:208
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\getLanguage
getLanguage()
Definition
OrderSearchAnyValueModel.php:156
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\setCaseInsensitive
setCaseInsensitive(?bool $caseInsensitive)
Definition
OrderSearchAnyValueModel.php:232
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\$caseInsensitive
$caseInsensitive
Definition
OrderSearchAnyValueModel.php:56
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\getField
getField()
Definition
OrderSearchAnyValueModel.php:82
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\getValue
getValue()
Definition
OrderSearchAnyValueModel.php:138
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\getCustomType
getCustomType()
Definition
OrderSearchAnyValueModel.php:120
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\setLanguage
setLanguage(?string $language)
Definition
OrderSearchAnyValueModel.php:224
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\setField
setField(?string $field)
Definition
OrderSearchAnyValueModel.php:192
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\$value
$value
Definition
OrderSearchAnyValueModel.php:44
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\__construct
__construct(?string $field=null, ?int $boost=null, ?string $customType=null, $value=null, ?string $language=null, ?bool $caseInsensitive=null)
Definition
OrderSearchAnyValueModel.php:62
Commercetools\Api\Models\Order\OrderSearchAnyValueModel\setValue
setValue($value)
Definition
OrderSearchAnyValueModel.php:216
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\Order\OrderSearchAnyValue
Definition
OrderSearchAnyValue.php:15
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Order
Definition
CustomLineItemImportDraft.php:9
Generated by
1.9.8