commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Search
SearchExistsValueBuilder.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
SearchExistsValueBuilder
implements
Builder
22
{
27
private
$field;
28
33
private
$boost;
34
39
private
$fieldType;
40
45
private
$language;
46
51
public
function
getField
()
52
{
53
return
$this->field;
54
}
55
60
public
function
getBoost
()
61
{
62
return
$this->boost;
63
}
64
71
public
function
getFieldType
()
72
{
73
return
$this->fieldType;
74
}
75
82
public
function
getLanguage
()
83
{
84
return
$this->language;
85
}
86
91
public
function
withField
(?
string
$field)
92
{
93
$this->field = $field;
94
95
return
$this;
96
}
97
102
public
function
withBoost
(?
float
$boost)
103
{
104
$this->boost = $boost;
105
106
return
$this;
107
}
108
113
public
function
withFieldType
(?
string
$fieldType)
114
{
115
$this->fieldType = $fieldType;
116
117
return
$this;
118
}
119
124
public
function
withLanguage
(?
string
$language)
125
{
126
$this->language = $language;
127
128
return
$this;
129
}
130
131
132
public
function
build
():
SearchExistsValue
133
{
134
return
new
SearchExistsValueModel
(
135
$this->field,
136
$this->boost,
137
$this->fieldType,
138
$this->language
139
);
140
}
141
142
public
static
function
of
():
SearchExistsValueBuilder
143
{
144
return
new
self
();
145
}
146
}
Commercetools\Api\Models\Search\SearchExistsValueBuilder
Definition:
SearchExistsValueBuilder.php:22
Commercetools\Api\Models\Search\SearchExistsValueBuilder\getBoost
getBoost()
Definition:
SearchExistsValueBuilder.php:60
Commercetools\Api\Models\Search\SearchExistsValueBuilder\withBoost
withBoost(?float $boost)
Definition:
SearchExistsValueBuilder.php:102
Commercetools\Api\Models\Search\SearchExistsValueBuilder\getLanguage
getLanguage()
Definition:
SearchExistsValueBuilder.php:82
Commercetools\Api\Models\Search\SearchExistsValueBuilder\of
static of()
Definition:
SearchExistsValueBuilder.php:142
Commercetools\Api\Models\Search\SearchExistsValueBuilder\withLanguage
withLanguage(?string $language)
Definition:
SearchExistsValueBuilder.php:124
Commercetools\Api\Models\Search\SearchExistsValueBuilder\withFieldType
withFieldType(?string $fieldType)
Definition:
SearchExistsValueBuilder.php:113
Commercetools\Api\Models\Search\SearchExistsValueBuilder\build
build()
Definition:
SearchExistsValueBuilder.php:132
Commercetools\Api\Models\Search\SearchExistsValueBuilder\getFieldType
getFieldType()
Definition:
SearchExistsValueBuilder.php:71
Commercetools\Api\Models\Search\SearchExistsValueBuilder\getField
getField()
Definition:
SearchExistsValueBuilder.php:51
Commercetools\Api\Models\Search\SearchExistsValueBuilder\withField
withField(?string $field)
Definition:
SearchExistsValueBuilder.php:91
Commercetools\Api\Models\Search\SearchExistsValueModel
Definition:
SearchExistsValueModel.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\SearchExistsValue
Definition:
SearchExistsValue.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