commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Search
SearchQueryExpressionValueBuilder.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
SearchQueryExpressionValueBuilder
implements
Builder
22
{
27
private
$field;
28
33
private
$boost;
34
39
private
$fieldType;
40
45
public
function
getField
()
46
{
47
return
$this->field;
48
}
49
54
public
function
getBoost
()
55
{
56
return
$this->boost;
57
}
58
65
public
function
getFieldType
()
66
{
67
return
$this->fieldType;
68
}
69
74
public
function
withField
(?
string
$field)
75
{
76
$this->field = $field;
77
78
return
$this;
79
}
80
85
public
function
withBoost
(?
float
$boost)
86
{
87
$this->boost = $boost;
88
89
return
$this;
90
}
91
96
public
function
withFieldType
(?
string
$fieldType)
97
{
98
$this->fieldType = $fieldType;
99
100
return
$this;
101
}
102
103
104
public
function
build
():
SearchQueryExpressionValue
105
{
106
return
new
SearchQueryExpressionValueModel
(
107
$this->field,
108
$this->boost,
109
$this->fieldType
110
);
111
}
112
113
public
static
function
of
():
SearchQueryExpressionValueBuilder
114
{
115
return
new
self
();
116
}
117
}
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder
Definition:
SearchQueryExpressionValueBuilder.php:22
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder\withFieldType
withFieldType(?string $fieldType)
Definition:
SearchQueryExpressionValueBuilder.php:96
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder\getBoost
getBoost()
Definition:
SearchQueryExpressionValueBuilder.php:54
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder\getFieldType
getFieldType()
Definition:
SearchQueryExpressionValueBuilder.php:65
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder\withField
withField(?string $field)
Definition:
SearchQueryExpressionValueBuilder.php:74
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder\getField
getField()
Definition:
SearchQueryExpressionValueBuilder.php:45
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder\build
build()
Definition:
SearchQueryExpressionValueBuilder.php:104
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder\of
static of()
Definition:
SearchQueryExpressionValueBuilder.php:113
Commercetools\Api\Models\Search\SearchQueryExpressionValueBuilder\withBoost
withBoost(?float $boost)
Definition:
SearchQueryExpressionValueBuilder.php:85
Commercetools\Api\Models\Search\SearchQueryExpressionValueModel
Definition:
SearchQueryExpressionValueModel.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\SearchQueryExpressionValue
Definition:
SearchQueryExpressionValue.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