commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
EventSubscriptionModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
26 protected $resourceTypeId;
27
32 protected $types;
33
34
38 public function __construct(
39 ?string $resourceTypeId = null,
40 ?array $types = null
41 ) {
42 $this->resourceTypeId = $resourceTypeId;
43 $this->types = $types;
44 }
45
52 public function getResourceTypeId()
53 {
54 if (is_null($this->resourceTypeId)) {
56 $data = $this->raw(self::FIELD_RESOURCE_TYPE_ID);
57 if (is_null($data)) {
58 return null;
59 }
60 $this->resourceTypeId = (string) $data;
61 }
62
64 }
65
74 public function getTypes()
75 {
76 if (is_null($this->types)) {
78 $data = $this->raw(self::FIELD_TYPES);
79 if (is_null($data)) {
80 return null;
81 }
82 $this->types = $data;
83 }
84
85 return $this->types;
86 }
87
88
92 public function setResourceTypeId(?string $resourceTypeId): void
93 {
94 $this->resourceTypeId = $resourceTypeId;
95 }
96
100 public function setTypes(?array $types): void
101 {
102 $this->types = $types;
103 }
104}
__construct(?string $resourceTypeId=null, ?array $types=null)