commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ImportContainerDeletedEventBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use DateTimeImmutable;
17use stdClass;
18
23{
28 private $id;
29
34 private $notificationType;
35
40 private $resourceType;
41
46 private $createdAt;
47
52 private $data;
53
60 public function getId()
61 {
62 return $this->id;
63 }
64
69 public function getNotificationType()
70 {
71 return $this->notificationType;
72 }
73
78 public function getResourceType()
79 {
80 return $this->resourceType;
81 }
82
89 public function getCreatedAt()
90 {
91 return $this->createdAt;
92 }
93
100 public function getData()
101 {
102 return $this->data instanceof ImportContainerDeletedEventDataBuilder ? $this->data->build() : $this->data;
103 }
104
109 public function withId(?string $id)
110 {
111 $this->id = $id;
112
113 return $this;
114 }
115
120 public function withNotificationType(?string $notificationType)
121 {
122 $this->notificationType = $notificationType;
123
124 return $this;
125 }
126
131 public function withResourceType(?string $resourceType)
132 {
133 $this->resourceType = $resourceType;
134
135 return $this;
136 }
137
142 public function withCreatedAt(?DateTimeImmutable $createdAt)
143 {
144 $this->createdAt = $createdAt;
145
146 return $this;
147 }
148
154 {
155 $this->data = $data;
156
157 return $this;
158 }
159
165 {
166 $this->data = $data;
167
168 return $this;
169 }
170
172 {
174 $this->id,
175 $this->notificationType,
176 $this->resourceType,
177 $this->createdAt,
178 $this->data instanceof ImportContainerDeletedEventDataBuilder ? $this->data->build() : $this->data
179 );
180 }
181
182 public static function of(): ImportContainerDeletedEventBuilder
183 {
184 return new self();
185 }
186}