commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Subscription.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use DateTimeImmutable;
17 
18 interface Subscription extends BaseResource
19 {
20  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
21  public const FIELD_CREATED_BY = 'createdBy';
22  public const FIELD_CHANGES = 'changes';
23  public const FIELD_DESTINATION = 'destination';
24  public const FIELD_KEY = 'key';
25  public const FIELD_MESSAGES = 'messages';
26  public const FIELD_FORMAT = 'format';
27  public const FIELD_STATUS = 'status';
28 
35  public function getId();
36 
43  public function getVersion();
44 
51  public function getCreatedAt();
52 
59  public function getLastModifiedAt();
60 
67  public function getLastModifiedBy();
68 
75  public function getCreatedBy();
76 
83  public function getChanges();
84 
91  public function getDestination();
92 
99  public function getKey();
100 
107  public function getMessages();
108 
115  public function getFormat();
116 
123  public function getStatus();
124 
128  public function setId(?string $id): void;
129 
133  public function setVersion(?int $version): void;
134 
138  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
139 
143  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
144 
148  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
149 
153  public function setCreatedBy(?CreatedBy $createdBy): void;
154 
158  public function setChanges(?ChangeSubscriptionCollection $changes): void;
159 
163  public function setDestination(?Destination $destination): void;
164 
168  public function setKey(?string $key): void;
169 
173  public function setMessages(?MessageSubscriptionCollection $messages): void;
174 
178  public function setFormat(?DeliveryFormat $format): void;
179 
183  public function setStatus(?string $status): void;
184 }
setMessages(?MessageSubscriptionCollection $messages)
setChanges(?ChangeSubscriptionCollection $changes)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setCreatedAt(?DateTimeImmutable $createdAt)