commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
StorefrontModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
20final class StorefrontModel extends JsonObjectModel implements Storefront
21{
27
33
39
45
51
57
63
68 protected $imprintUrl;
69
74 protected $faqUrl;
75
80 protected $contactUrl;
81
82
86 public function __construct(
87 ?string $checkoutUrlTemplate = null,
88 ?string $orderUrlTemplate = null,
89 ?string $termsOfServiceUrl = null,
90 ?string $privacyPolicyUrl = null,
91 ?string $refundPolicyUrl = null,
92 ?string $shippingPolicyUrl = null,
93 ?string $cookiePolicyUrl = null,
94 ?string $imprintUrl = null,
95 ?string $faqUrl = null,
96 ?string $contactUrl = null
97 ) {
98 $this->checkoutUrlTemplate = $checkoutUrlTemplate;
99 $this->orderUrlTemplate = $orderUrlTemplate;
100 $this->termsOfServiceUrl = $termsOfServiceUrl;
101 $this->privacyPolicyUrl = $privacyPolicyUrl;
102 $this->refundPolicyUrl = $refundPolicyUrl;
103 $this->shippingPolicyUrl = $shippingPolicyUrl;
104 $this->cookiePolicyUrl = $cookiePolicyUrl;
105 $this->imprintUrl = $imprintUrl;
106 $this->faqUrl = $faqUrl;
107 $this->contactUrl = $contactUrl;
108 }
109
117 public function getCheckoutUrlTemplate()
118 {
119 if (is_null($this->checkoutUrlTemplate)) {
121 $data = $this->raw(self::FIELD_CHECKOUT_URL_TEMPLATE);
122 if (is_null($data)) {
123 return null;
124 }
125 $this->checkoutUrlTemplate = (string) $data;
126 }
127
129 }
130
138 public function getOrderUrlTemplate()
139 {
140 if (is_null($this->orderUrlTemplate)) {
142 $data = $this->raw(self::FIELD_ORDER_URL_TEMPLATE);
143 if (is_null($data)) {
144 return null;
145 }
146 $this->orderUrlTemplate = (string) $data;
147 }
148
150 }
151
158 public function getTermsOfServiceUrl()
159 {
160 if (is_null($this->termsOfServiceUrl)) {
162 $data = $this->raw(self::FIELD_TERMS_OF_SERVICE_URL);
163 if (is_null($data)) {
164 return null;
165 }
166 $this->termsOfServiceUrl = (string) $data;
167 }
168
170 }
171
178 public function getPrivacyPolicyUrl()
179 {
180 if (is_null($this->privacyPolicyUrl)) {
182 $data = $this->raw(self::FIELD_PRIVACY_POLICY_URL);
183 if (is_null($data)) {
184 return null;
185 }
186 $this->privacyPolicyUrl = (string) $data;
187 }
188
190 }
191
198 public function getRefundPolicyUrl()
199 {
200 if (is_null($this->refundPolicyUrl)) {
202 $data = $this->raw(self::FIELD_REFUND_POLICY_URL);
203 if (is_null($data)) {
204 return null;
205 }
206 $this->refundPolicyUrl = (string) $data;
207 }
208
210 }
211
218 public function getShippingPolicyUrl()
219 {
220 if (is_null($this->shippingPolicyUrl)) {
222 $data = $this->raw(self::FIELD_SHIPPING_POLICY_URL);
223 if (is_null($data)) {
224 return null;
225 }
226 $this->shippingPolicyUrl = (string) $data;
227 }
228
230 }
231
238 public function getCookiePolicyUrl()
239 {
240 if (is_null($this->cookiePolicyUrl)) {
242 $data = $this->raw(self::FIELD_COOKIE_POLICY_URL);
243 if (is_null($data)) {
244 return null;
245 }
246 $this->cookiePolicyUrl = (string) $data;
247 }
248
250 }
251
258 public function getImprintUrl()
259 {
260 if (is_null($this->imprintUrl)) {
262 $data = $this->raw(self::FIELD_IMPRINT_URL);
263 if (is_null($data)) {
264 return null;
265 }
266 $this->imprintUrl = (string) $data;
267 }
268
269 return $this->imprintUrl;
270 }
271
278 public function getFaqUrl()
279 {
280 if (is_null($this->faqUrl)) {
282 $data = $this->raw(self::FIELD_FAQ_URL);
283 if (is_null($data)) {
284 return null;
285 }
286 $this->faqUrl = (string) $data;
287 }
288
289 return $this->faqUrl;
290 }
291
298 public function getContactUrl()
299 {
300 if (is_null($this->contactUrl)) {
302 $data = $this->raw(self::FIELD_CONTACT_URL);
303 if (is_null($data)) {
304 return null;
305 }
306 $this->contactUrl = (string) $data;
307 }
308
309 return $this->contactUrl;
310 }
311
312
316 public function setCheckoutUrlTemplate(?string $checkoutUrlTemplate): void
317 {
318 $this->checkoutUrlTemplate = $checkoutUrlTemplate;
319 }
320
324 public function setOrderUrlTemplate(?string $orderUrlTemplate): void
325 {
326 $this->orderUrlTemplate = $orderUrlTemplate;
327 }
328
332 public function setTermsOfServiceUrl(?string $termsOfServiceUrl): void
333 {
334 $this->termsOfServiceUrl = $termsOfServiceUrl;
335 }
336
340 public function setPrivacyPolicyUrl(?string $privacyPolicyUrl): void
341 {
342 $this->privacyPolicyUrl = $privacyPolicyUrl;
343 }
344
348 public function setRefundPolicyUrl(?string $refundPolicyUrl): void
349 {
350 $this->refundPolicyUrl = $refundPolicyUrl;
351 }
352
356 public function setShippingPolicyUrl(?string $shippingPolicyUrl): void
357 {
358 $this->shippingPolicyUrl = $shippingPolicyUrl;
359 }
360
364 public function setCookiePolicyUrl(?string $cookiePolicyUrl): void
365 {
366 $this->cookiePolicyUrl = $cookiePolicyUrl;
367 }
368
372 public function setImprintUrl(?string $imprintUrl): void
373 {
374 $this->imprintUrl = $imprintUrl;
375 }
376
380 public function setFaqUrl(?string $faqUrl): void
381 {
382 $this->faqUrl = $faqUrl;
383 }
384
388 public function setContactUrl(?string $contactUrl): void
389 {
390 $this->contactUrl = $contactUrl;
391 }
392}
__construct(?string $checkoutUrlTemplate=null, ?string $orderUrlTemplate=null, ?string $termsOfServiceUrl=null, ?string $privacyPolicyUrl=null, ?string $refundPolicyUrl=null, ?string $shippingPolicyUrl=null, ?string $cookiePolicyUrl=null, ?string $imprintUrl=null, ?string $faqUrl=null, ?string $contactUrl=null)
setCheckoutUrlTemplate(?string $checkoutUrlTemplate)