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
Project
SearchIndexingConfigurationBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Project
;
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
SearchIndexingConfigurationBuilder
implements
Builder
22
{
27
private
$products;
28
33
private
$productsSearch;
34
39
private
$orders;
40
45
private
$customers;
46
51
private
$businessUnits;
52
59
public
function
getProducts
()
60
{
61
return
$this->products instanceof
SearchIndexingConfigurationValuesBuilder
? $this->products->
build
() : $this->products;
62
}
63
70
public
function
getProductsSearch
()
71
{
72
return
$this->productsSearch instanceof
SearchIndexingConfigurationValuesBuilder
? $this->productsSearch->
build
() : $this->productsSearch;
73
}
74
81
public
function
getOrders
()
82
{
83
return
$this->orders instanceof
SearchIndexingConfigurationValuesBuilder
? $this->orders->
build
() : $this->orders;
84
}
85
92
public
function
getCustomers
()
93
{
94
return
$this->customers instanceof
SearchIndexingConfigurationValuesBuilder
? $this->customers->
build
() : $this->customers;
95
}
96
103
public
function
getBusinessUnits
()
104
{
105
return
$this->businessUnits instanceof
SearchIndexingConfigurationValuesBuilder
? $this->businessUnits->
build
() : $this->businessUnits;
106
}
107
112
public
function
withProducts
(?
SearchIndexingConfigurationValues
$products)
113
{
114
$this->products = $products;
115
116
return
$this;
117
}
118
123
public
function
withProductsSearch
(?
SearchIndexingConfigurationValues
$productsSearch)
124
{
125
$this->productsSearch = $productsSearch;
126
127
return
$this;
128
}
129
134
public
function
withOrders
(?
SearchIndexingConfigurationValues
$orders)
135
{
136
$this->orders = $orders;
137
138
return
$this;
139
}
140
145
public
function
withCustomers
(?
SearchIndexingConfigurationValues
$customers)
146
{
147
$this->customers = $customers;
148
149
return
$this;
150
}
151
156
public
function
withBusinessUnits
(?
SearchIndexingConfigurationValues
$businessUnits)
157
{
158
$this->businessUnits = $businessUnits;
159
160
return
$this;
161
}
162
167
public
function
withProductsBuilder
(?
SearchIndexingConfigurationValuesBuilder
$products)
168
{
169
$this->products = $products;
170
171
return
$this;
172
}
173
178
public
function
withProductsSearchBuilder
(?
SearchIndexingConfigurationValuesBuilder
$productsSearch)
179
{
180
$this->productsSearch = $productsSearch;
181
182
return
$this;
183
}
184
189
public
function
withOrdersBuilder
(?
SearchIndexingConfigurationValuesBuilder
$orders)
190
{
191
$this->orders = $orders;
192
193
return
$this;
194
}
195
200
public
function
withCustomersBuilder
(?
SearchIndexingConfigurationValuesBuilder
$customers)
201
{
202
$this->customers = $customers;
203
204
return
$this;
205
}
206
211
public
function
withBusinessUnitsBuilder
(?
SearchIndexingConfigurationValuesBuilder
$businessUnits)
212
{
213
$this->businessUnits = $businessUnits;
214
215
return
$this;
216
}
217
218
public
function
build
():
SearchIndexingConfiguration
219
{
220
return
new
SearchIndexingConfigurationModel
(
221
$this->products instanceof
SearchIndexingConfigurationValuesBuilder
? $this->products->
build
() : $this->products,
222
$this->productsSearch instanceof
SearchIndexingConfigurationValuesBuilder
? $this->productsSearch->
build
() : $this->productsSearch,
223
$this->orders instanceof
SearchIndexingConfigurationValuesBuilder
? $this->orders->
build
() : $this->orders,
224
$this->customers instanceof
SearchIndexingConfigurationValuesBuilder
? $this->customers->
build
() : $this->customers,
225
$this->businessUnits instanceof
SearchIndexingConfigurationValuesBuilder
? $this->businessUnits->
build
() : $this->businessUnits
226
);
227
}
228
229
public
static
function
of
():
SearchIndexingConfigurationBuilder
230
{
231
return
new
self
();
232
}
233
}
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder
Definition
SearchIndexingConfigurationBuilder.php:22
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withOrders
withOrders(?SearchIndexingConfigurationValues $orders)
Definition
SearchIndexingConfigurationBuilder.php:134
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\getProducts
getProducts()
Definition
SearchIndexingConfigurationBuilder.php:59
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\getCustomers
getCustomers()
Definition
SearchIndexingConfigurationBuilder.php:92
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\getProductsSearch
getProductsSearch()
Definition
SearchIndexingConfigurationBuilder.php:70
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withCustomers
withCustomers(?SearchIndexingConfigurationValues $customers)
Definition
SearchIndexingConfigurationBuilder.php:145
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withBusinessUnitsBuilder
withBusinessUnitsBuilder(?SearchIndexingConfigurationValuesBuilder $businessUnits)
Definition
SearchIndexingConfigurationBuilder.php:211
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withProductsSearchBuilder
withProductsSearchBuilder(?SearchIndexingConfigurationValuesBuilder $productsSearch)
Definition
SearchIndexingConfigurationBuilder.php:178
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\of
static of()
Definition
SearchIndexingConfigurationBuilder.php:229
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withOrdersBuilder
withOrdersBuilder(?SearchIndexingConfigurationValuesBuilder $orders)
Definition
SearchIndexingConfigurationBuilder.php:189
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\getBusinessUnits
getBusinessUnits()
Definition
SearchIndexingConfigurationBuilder.php:103
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withProductsSearch
withProductsSearch(?SearchIndexingConfigurationValues $productsSearch)
Definition
SearchIndexingConfigurationBuilder.php:123
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withProducts
withProducts(?SearchIndexingConfigurationValues $products)
Definition
SearchIndexingConfigurationBuilder.php:112
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\build
build()
Definition
SearchIndexingConfigurationBuilder.php:218
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withBusinessUnits
withBusinessUnits(?SearchIndexingConfigurationValues $businessUnits)
Definition
SearchIndexingConfigurationBuilder.php:156
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\getOrders
getOrders()
Definition
SearchIndexingConfigurationBuilder.php:81
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withProductsBuilder
withProductsBuilder(?SearchIndexingConfigurationValuesBuilder $products)
Definition
SearchIndexingConfigurationBuilder.php:167
Commercetools\Api\Models\Project\SearchIndexingConfigurationBuilder\withCustomersBuilder
withCustomersBuilder(?SearchIndexingConfigurationValuesBuilder $customers)
Definition
SearchIndexingConfigurationBuilder.php:200
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel
Definition
SearchIndexingConfigurationModel.php:21
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder
Definition
SearchIndexingConfigurationValuesBuilder.php:25
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\build
build()
Definition
SearchIndexingConfigurationValuesBuilder.php:121
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Project\SearchIndexingConfiguration
Definition
SearchIndexingConfiguration.php:15
Commercetools\Api\Models\Project\SearchIndexingConfigurationValues
Definition
SearchIndexingConfigurationValues.php:17
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Project
Definition
BusinessUnitConfiguration.php:9
Generated by
1.9.8