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