commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartsConfigurationModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
21 {
27 
33 
34 
38  public function __construct(
41  ) {
42  $this->deleteDaysAfterLastModification = $deleteDaysAfterLastModification;
43  $this->countryTaxRateFallbackEnabled = $countryTaxRateFallbackEnabled;
44  }
45 
55  {
56  if (is_null($this->deleteDaysAfterLastModification)) {
58  $data = $this->raw(self::FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION);
59  if (is_null($data)) {
60  return null;
61  }
62  $this->deleteDaysAfterLastModification = (int) $data;
63  }
64 
66  }
67 
75  {
76  if (is_null($this->countryTaxRateFallbackEnabled)) {
78  $data = $this->raw(self::FIELD_COUNTRY_TAX_RATE_FALLBACK_ENABLED);
79  if (is_null($data)) {
80  return null;
81  }
82  $this->countryTaxRateFallbackEnabled = (bool) $data;
83  }
84 
86  }
87 
88 
93  {
94  $this->deleteDaysAfterLastModification = $deleteDaysAfterLastModification;
95  }
96 
101  {
102  $this->countryTaxRateFallbackEnabled = $countryTaxRateFallbackEnabled;
103  }
104 }
setCountryTaxRateFallbackEnabled(?bool $countryTaxRateFallbackEnabled)
__construct(?int $deleteDaysAfterLastModification=null, ?bool $countryTaxRateFallbackEnabled=null)
setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)