commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
SearchIndexingConfigurationModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
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(
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
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
173 }
174
175
180 {
181 $this->products = $products;
182 }
183
188 {
189 $this->productsSearch = $productsSearch;
190 }
191
196 {
197 $this->orders = $orders;
198 }
199
204 {
205 $this->customers = $customers;
206 }
207
212 {
213 $this->businessUnits = $businessUnits;
214 }
215}
__construct(?SearchIndexingConfigurationValues $products=null, ?SearchIndexingConfigurationValues $productsSearch=null, ?SearchIndexingConfigurationValues $orders=null, ?SearchIndexingConfigurationValues $customers=null, ?SearchIndexingConfigurationValues $businessUnits=null)