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