commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
OrderSearchStringValueBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class OrderSearchStringValueBuilder implements Builder
22 {
27  private $field;
28 
33  private $boost;
34 
39  private $customType;
40 
45  private $value;
46 
51  private $language;
52 
57  private $caseInsensitive;
58 
63  public function getField()
64  {
65  return $this->field;
66  }
67 
72  public function getBoost()
73  {
74  return $this->boost;
75  }
76 
83  public function getCustomType()
84  {
85  return $this->customType;
86  }
87 
92  public function getValue()
93  {
94  return $this->value;
95  }
96 
101  public function getLanguage()
102  {
103  return $this->language;
104  }
105 
110  public function getCaseInsensitive()
111  {
112  return $this->caseInsensitive;
113  }
114 
119  public function withField(?string $field)
120  {
121  $this->field = $field;
122 
123  return $this;
124  }
125 
130  public function withBoost(?int $boost)
131  {
132  $this->boost = $boost;
133 
134  return $this;
135  }
136 
141  public function withCustomType(?string $customType)
142  {
143  $this->customType = $customType;
144 
145  return $this;
146  }
147 
152  public function withValue(?string $value)
153  {
154  $this->value = $value;
155 
156  return $this;
157  }
158 
163  public function withLanguage(?string $language)
164  {
165  $this->language = $language;
166 
167  return $this;
168  }
169 
174  public function withCaseInsensitive(?bool $caseInsensitive)
175  {
176  $this->caseInsensitive = $caseInsensitive;
177 
178  return $this;
179  }
180 
181 
182  public function build(): OrderSearchStringValue
183  {
184  return new OrderSearchStringValueModel(
185  $this->field,
186  $this->boost,
187  $this->customType,
188  $this->value,
189  $this->language,
190  $this->caseInsensitive
191  );
192  }
193 
194  public static function of(): OrderSearchStringValueBuilder
195  {
196  return new self();
197  }
198 }