commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Search
SearchAnyValueBuilder.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
SearchAnyValueBuilder
implements
Builder
22
{
27
private
$field;
28
33
private
$boost;
34
39
private
$fieldType;
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
getFieldType
()
84
{
85
return
$this->fieldType;
86
}
87
92
public
function
getValue
()
93
{
94
return
$this->value;
95
}
96
103
public
function
getLanguage
()
104
{
105
return
$this->language;
106
}
107
112
public
function
getCaseInsensitive
()
113
{
114
return
$this->caseInsensitive;
115
}
116
121
public
function
withField
(?
string
$field)
122
{
123
$this->field = $field;
124
125
return
$this;
126
}
127
132
public
function
withBoost
(?
float
$boost)
133
{
134
$this->boost = $boost;
135
136
return
$this;
137
}
138
143
public
function
withFieldType
(?
string
$fieldType)
144
{
145
$this->fieldType = $fieldType;
146
147
return
$this;
148
}
149
154
public
function
withValue
($value)
155
{
156
$this->value = $value;
157
158
return
$this;
159
}
160
165
public
function
withLanguage
(?
string
$language)
166
{
167
$this->language = $language;
168
169
return
$this;
170
}
171
176
public
function
withCaseInsensitive
(?
bool
$caseInsensitive)
177
{
178
$this->caseInsensitive = $caseInsensitive;
179
180
return
$this;
181
}
182
183
184
public
function
build
():
SearchAnyValue
185
{
186
return
new
SearchAnyValueModel
(
187
$this->field,
188
$this->boost,
189
$this->fieldType,
190
$this->value,
191
$this->language,
192
$this->caseInsensitive
193
);
194
}
195
196
public
static
function
of
():
SearchAnyValueBuilder
197
{
198
return
new
self
();
199
}
200
}
Commercetools\Api\Models\Search\SearchAnyValueBuilder
Definition:
SearchAnyValueBuilder.php:22
Commercetools\Api\Models\Search\SearchAnyValueBuilder\build
build()
Definition:
SearchAnyValueBuilder.php:184
Commercetools\Api\Models\Search\SearchAnyValueBuilder\getCaseInsensitive
getCaseInsensitive()
Definition:
SearchAnyValueBuilder.php:112
Commercetools\Api\Models\Search\SearchAnyValueBuilder\withFieldType
withFieldType(?string $fieldType)
Definition:
SearchAnyValueBuilder.php:143
Commercetools\Api\Models\Search\SearchAnyValueBuilder\withBoost
withBoost(?float $boost)
Definition:
SearchAnyValueBuilder.php:132
Commercetools\Api\Models\Search\SearchAnyValueBuilder\getBoost
getBoost()
Definition:
SearchAnyValueBuilder.php:72
Commercetools\Api\Models\Search\SearchAnyValueBuilder\getFieldType
getFieldType()
Definition:
SearchAnyValueBuilder.php:83
Commercetools\Api\Models\Search\SearchAnyValueBuilder\withField
withField(?string $field)
Definition:
SearchAnyValueBuilder.php:121
Commercetools\Api\Models\Search\SearchAnyValueBuilder\withLanguage
withLanguage(?string $language)
Definition:
SearchAnyValueBuilder.php:165
Commercetools\Api\Models\Search\SearchAnyValueBuilder\of
static of()
Definition:
SearchAnyValueBuilder.php:196
Commercetools\Api\Models\Search\SearchAnyValueBuilder\withValue
withValue($value)
Definition:
SearchAnyValueBuilder.php:154
Commercetools\Api\Models\Search\SearchAnyValueBuilder\getLanguage
getLanguage()
Definition:
SearchAnyValueBuilder.php:103
Commercetools\Api\Models\Search\SearchAnyValueBuilder\getValue
getValue()
Definition:
SearchAnyValueBuilder.php:92
Commercetools\Api\Models\Search\SearchAnyValueBuilder\withCaseInsensitive
withCaseInsensitive(?bool $caseInsensitive)
Definition:
SearchAnyValueBuilder.php:176
Commercetools\Api\Models\Search\SearchAnyValueBuilder\getField
getField()
Definition:
SearchAnyValueBuilder.php:63
Commercetools\Api\Models\Search\SearchAnyValueModel
Definition:
SearchAnyValueModel.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\SearchAnyValue
Definition:
SearchAnyValue.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