commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
Message.php
1<?php
2
3declare(strict_types=1);
10
17use DateTimeImmutable;
18
19interface Message extends BaseResource
20{
21 public const DISCRIMINATOR_FIELD = 'type';
22 public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
23 public const FIELD_CREATED_BY = 'createdBy';
24 public const FIELD_SEQUENCE_NUMBER = 'sequenceNumber';
25 public const FIELD_RESOURCE = 'resource';
26 public const FIELD_RESOURCE_VERSION = 'resourceVersion';
27 public const FIELD_TYPE = 'type';
28 public const FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS = 'resourceUserProvidedIdentifiers';
29
36 public function getId();
37
44 public function getVersion();
45
52 public function getCreatedAt();
53
60 public function getLastModifiedAt();
61
68 public function getLastModifiedBy();
69
76 public function getCreatedBy();
77
85 public function getSequenceNumber();
86
93 public function getResource();
94
101 public function getResourceVersion();
102
109 public function getType();
110
118
122 public function setId(?string $id): void;
123
127 public function setVersion(?int $version): void;
128
132 public function setCreatedAt(?DateTimeImmutable $createdAt): void;
133
137 public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
138
142 public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
143
147 public function setCreatedBy(?CreatedBy $createdBy): void;
148
152 public function setSequenceNumber(?int $sequenceNumber): void;
153
157 public function setResource(?Reference $resource): void;
158
162 public function setResourceVersion(?int $resourceVersion): void;
163
167 public function setResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers): void;
168}
setResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setSequenceNumber(?int $sequenceNumber)
setCreatedAt(?DateTimeImmutable $createdAt)
setResourceVersion(?int $resourceVersion)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)