commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
OrderSearchStringValueModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
26 protected $field;
27
32 protected $boost;
33
38 protected $customType;
39
44 protected $value;
45
50 protected $language;
51
57
58
62 public function __construct(
63 ?string $field = null,
64 ?int $boost = null,
65 ?string $customType = null,
66 ?string $value = null,
67 ?string $language = null,
68 ?bool $caseInsensitive = null
69 ) {
70 $this->field = $field;
71 $this->boost = $boost;
72 $this->customType = $customType;
73 $this->value = $value;
74 $this->language = $language;
75 $this->caseInsensitive = $caseInsensitive;
76 }
77
82 public function getField()
83 {
84 if (is_null($this->field)) {
86 $data = $this->raw(self::FIELD_FIELD);
87 if (is_null($data)) {
88 return null;
89 }
90 $this->field = (string) $data;
91 }
92
93 return $this->field;
94 }
95
100 public function getBoost()
101 {
102 if (is_null($this->boost)) {
104 $data = $this->raw(self::FIELD_BOOST);
105 if (is_null($data)) {
106 return null;
107 }
108 $this->boost = (int) $data;
109 }
110
111 return $this->boost;
112 }
113
120 public function getCustomType()
121 {
122 if (is_null($this->customType)) {
124 $data = $this->raw(self::FIELD_CUSTOM_TYPE);
125 if (is_null($data)) {
126 return null;
127 }
128 $this->customType = (string) $data;
129 }
130
131 return $this->customType;
132 }
133
138 public function getValue()
139 {
140 if (is_null($this->value)) {
142 $data = $this->raw(self::FIELD_VALUE);
143 if (is_null($data)) {
144 return null;
145 }
146 $this->value = (string) $data;
147 }
148
149 return $this->value;
150 }
151
156 public function getLanguage()
157 {
158 if (is_null($this->language)) {
160 $data = $this->raw(self::FIELD_LANGUAGE);
161 if (is_null($data)) {
162 return null;
163 }
164 $this->language = (string) $data;
165 }
166
167 return $this->language;
168 }
169
174 public function getCaseInsensitive()
175 {
176 if (is_null($this->caseInsensitive)) {
178 $data = $this->raw(self::FIELD_CASE_INSENSITIVE);
179 if (is_null($data)) {
180 return null;
181 }
182 $this->caseInsensitive = (bool) $data;
183 }
184
186 }
187
188
192 public function setField(?string $field): void
193 {
194 $this->field = $field;
195 }
196
200 public function setBoost(?int $boost): void
201 {
202 $this->boost = $boost;
203 }
204
208 public function setCustomType(?string $customType): void
209 {
210 $this->customType = $customType;
211 }
212
216 public function setValue(?string $value): void
217 {
218 $this->value = $value;
219 }
220
224 public function setLanguage(?string $language): void
225 {
226 $this->language = $language;
227 }
228
232 public function setCaseInsensitive(?bool $caseInsensitive): void
233 {
234 $this->caseInsensitive = $caseInsensitive;
235 }
236}
__construct(?string $field=null, ?int $boost=null, ?string $customType=null, ?string $value=null, ?string $language=null, ?bool $caseInsensitive=null)