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
SearchIndexingConfigurationModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Project
;
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
SearchIndexingConfigurationModel
extends
JsonObjectModel
implements
SearchIndexingConfiguration
21
{
26
protected
$products
;
27
32
protected
$productsSearch
;
33
38
protected
$orders
;
39
44
protected
$customers
;
45
50
protected
$businessUnits
;
51
52
56
public
function
__construct
(
57
?
SearchIndexingConfigurationValues
$products
=
null
,
58
?
SearchIndexingConfigurationValues
$productsSearch
=
null
,
59
?
SearchIndexingConfigurationValues
$orders
=
null
,
60
?
SearchIndexingConfigurationValues
$customers
=
null
,
61
?
SearchIndexingConfigurationValues
$businessUnits
=
null
62
) {
63
$this->products =
$products
;
64
$this->productsSearch =
$productsSearch
;
65
$this->orders =
$orders
;
66
$this->customers =
$customers
;
67
$this->businessUnits =
$businessUnits
;
68
}
69
76
public
function
getProducts
()
77
{
78
if
(is_null($this->products)) {
80
$data = $this->
raw
(self::FIELD_PRODUCTS);
81
if
(is_null($data)) {
82
return
null
;
83
}
84
85
$this->products =
SearchIndexingConfigurationValuesModel::of
($data);
86
}
87
88
return
$this->products
;
89
}
90
97
public
function
getProductsSearch
()
98
{
99
if
(is_null($this->productsSearch)) {
101
$data = $this->
raw
(self::FIELD_PRODUCTS_SEARCH);
102
if
(is_null($data)) {
103
return
null
;
104
}
105
106
$this->productsSearch =
SearchIndexingConfigurationValuesModel::of
($data);
107
}
108
109
return
$this->productsSearch
;
110
}
111
118
public
function
getOrders
()
119
{
120
if
(is_null($this->orders)) {
122
$data = $this->
raw
(self::FIELD_ORDERS);
123
if
(is_null($data)) {
124
return
null
;
125
}
126
127
$this->orders =
SearchIndexingConfigurationValuesModel::of
($data);
128
}
129
130
return
$this->orders
;
131
}
132
139
public
function
getCustomers
()
140
{
141
if
(is_null($this->customers)) {
143
$data = $this->
raw
(self::FIELD_CUSTOMERS);
144
if
(is_null($data)) {
145
return
null
;
146
}
147
148
$this->customers =
SearchIndexingConfigurationValuesModel::of
($data);
149
}
150
151
return
$this->customers
;
152
}
153
160
public
function
getBusinessUnits
()
161
{
162
if
(is_null($this->businessUnits)) {
164
$data = $this->
raw
(self::FIELD_BUSINESS_UNITS);
165
if
(is_null($data)) {
166
return
null
;
167
}
168
169
$this->businessUnits =
SearchIndexingConfigurationValuesModel::of
($data);
170
}
171
172
return
$this->businessUnits
;
173
}
174
175
179
public
function
setProducts
(?
SearchIndexingConfigurationValues
$products
): void
180
{
181
$this->products =
$products
;
182
}
183
187
public
function
setProductsSearch
(?
SearchIndexingConfigurationValues
$productsSearch
): void
188
{
189
$this->productsSearch =
$productsSearch
;
190
}
191
195
public
function
setOrders
(?
SearchIndexingConfigurationValues
$orders
): void
196
{
197
$this->orders =
$orders
;
198
}
199
203
public
function
setCustomers
(?
SearchIndexingConfigurationValues
$customers
): void
204
{
205
$this->customers =
$customers
;
206
}
207
211
public
function
setBusinessUnits
(?
SearchIndexingConfigurationValues
$businessUnits
): void
212
{
213
$this->businessUnits =
$businessUnits
;
214
}
215
}
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel
Definition
SearchIndexingConfigurationModel.php:21
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\$customers
$customers
Definition
SearchIndexingConfigurationModel.php:44
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\$productsSearch
$productsSearch
Definition
SearchIndexingConfigurationModel.php:32
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\__construct
__construct(?SearchIndexingConfigurationValues $products=null, ?SearchIndexingConfigurationValues $productsSearch=null, ?SearchIndexingConfigurationValues $orders=null, ?SearchIndexingConfigurationValues $customers=null, ?SearchIndexingConfigurationValues $businessUnits=null)
Definition
SearchIndexingConfigurationModel.php:56
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\setProducts
setProducts(?SearchIndexingConfigurationValues $products)
Definition
SearchIndexingConfigurationModel.php:179
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\$products
$products
Definition
SearchIndexingConfigurationModel.php:26
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\getProducts
getProducts()
Definition
SearchIndexingConfigurationModel.php:76
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\setBusinessUnits
setBusinessUnits(?SearchIndexingConfigurationValues $businessUnits)
Definition
SearchIndexingConfigurationModel.php:211
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\setCustomers
setCustomers(?SearchIndexingConfigurationValues $customers)
Definition
SearchIndexingConfigurationModel.php:203
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\getOrders
getOrders()
Definition
SearchIndexingConfigurationModel.php:118
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\$orders
$orders
Definition
SearchIndexingConfigurationModel.php:38
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\$businessUnits
$businessUnits
Definition
SearchIndexingConfigurationModel.php:50
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\getProductsSearch
getProductsSearch()
Definition
SearchIndexingConfigurationModel.php:97
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\setOrders
setOrders(?SearchIndexingConfigurationValues $orders)
Definition
SearchIndexingConfigurationModel.php:195
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\getCustomers
getCustomers()
Definition
SearchIndexingConfigurationModel.php:139
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\getBusinessUnits
getBusinessUnits()
Definition
SearchIndexingConfigurationModel.php:160
Commercetools\Api\Models\Project\SearchIndexingConfigurationModel\setProductsSearch
setProductsSearch(?SearchIndexingConfigurationValues $productsSearch)
Definition
SearchIndexingConfigurationModel.php:187
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
Commercetools\Base\BaseJsonObject\of
static of($data=null)
Definition
BaseJsonObject.php:26
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\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Project
Definition
BusinessUnitConfiguration.php:9
Generated by
1.9.8