commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DiscountsConfigurationModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
27
28
32 public function __construct(
33 ?string $discountCombinationMode = null
34 ) {
35 $this->discountCombinationMode = $discountCombinationMode;
36 }
37
45 {
46 if (is_null($this->discountCombinationMode)) {
48 $data = $this->raw(self::FIELD_DISCOUNT_COMBINATION_MODE);
49 if (is_null($data)) {
50 return null;
51 }
52 $this->discountCombinationMode = (string) $data;
53 }
54
56 }
57
58
63 {
64 $this->discountCombinationMode = $discountCombinationMode;
65 }
66}