commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
SearchIndexingConfigurationBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $products;
28 
33  private $productsSearch;
34 
39  private $orders;
40 
45  private $customers;
46 
53  public function getProducts()
54  {
55  return $this->products instanceof SearchIndexingConfigurationValuesBuilder ? $this->products->build() : $this->products;
56  }
57 
64  public function getProductsSearch()
65  {
66  return $this->productsSearch instanceof SearchIndexingConfigurationValuesBuilder ? $this->productsSearch->build() : $this->productsSearch;
67  }
68 
75  public function getOrders()
76  {
77  return $this->orders instanceof SearchIndexingConfigurationValuesBuilder ? $this->orders->build() : $this->orders;
78  }
79 
86  public function getCustomers()
87  {
88  return $this->customers instanceof SearchIndexingConfigurationValuesBuilder ? $this->customers->build() : $this->customers;
89  }
90 
95  public function withProducts(?SearchIndexingConfigurationValues $products)
96  {
97  $this->products = $products;
98 
99  return $this;
100  }
101 
106  public function withProductsSearch(?SearchIndexingConfigurationValues $productsSearch)
107  {
108  $this->productsSearch = $productsSearch;
109 
110  return $this;
111  }
112 
118  {
119  $this->orders = $orders;
120 
121  return $this;
122  }
123 
129  {
130  $this->customers = $customers;
131 
132  return $this;
133  }
134 
140  {
141  $this->products = $products;
142 
143  return $this;
144  }
145 
151  {
152  $this->productsSearch = $productsSearch;
153 
154  return $this;
155  }
156 
162  {
163  $this->orders = $orders;
164 
165  return $this;
166  }
167 
173  {
174  $this->customers = $customers;
175 
176  return $this;
177  }
178 
180  {
182  $this->products instanceof SearchIndexingConfigurationValuesBuilder ? $this->products->build() : $this->products,
183  $this->productsSearch instanceof SearchIndexingConfigurationValuesBuilder ? $this->productsSearch->build() : $this->productsSearch,
184  $this->orders instanceof SearchIndexingConfigurationValuesBuilder ? $this->orders->build() : $this->orders,
185  $this->customers instanceof SearchIndexingConfigurationValuesBuilder ? $this->customers->build() : $this->customers
186  );
187  }
188 
189  public static function of(): SearchIndexingConfigurationBuilder
190  {
191  return new self();
192  }
193 }
withProductsSearchBuilder(?SearchIndexingConfigurationValuesBuilder $productsSearch)