commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Message
Message.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Message
;
10
11
use
Commercetools\Api\Models\Common\BaseResource
;
12
use
Commercetools\Api\Models\Common\CreatedBy
;
13
use
Commercetools\Api\Models\Common\LastModifiedBy
;
14
use
Commercetools\Api\Models\Common\Reference
;
15
use
Commercetools\Base\DateTimeImmutableCollection
;
16
use
Commercetools\Base\JsonObject
;
17
use DateTimeImmutable;
18
19
interface
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
117
public
function
getResourceUserProvidedIdentifiers
();
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
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Common\Reference
Definition:
Reference.php:50
Commercetools\Api\Models\Message\Message
Definition:
Message.php:20
Commercetools\Api\Models\Message\Message\FIELD_TYPE
const FIELD_TYPE
Definition:
Message.php:27
Commercetools\Api\Models\Message\Message\setResource
setResource(?Reference $resource)
Commercetools\Api\Models\Message\Message\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\Message\Message\FIELD_RESOURCE_VERSION
const FIELD_RESOURCE_VERSION
Definition:
Message.php:26
Commercetools\Api\Models\Message\Message\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
Message.php:23
Commercetools\Api\Models\Message\Message\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Message\Message\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\Message\Message\getVersion
getVersion()
Commercetools\Api\Models\Message\Message\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Message\Message\getResource
getResource()
Commercetools\Api\Models\Message\Message\FIELD_RESOURCE
const FIELD_RESOURCE
Definition:
Message.php:25
Commercetools\Api\Models\Message\Message\FIELD_SEQUENCE_NUMBER
const FIELD_SEQUENCE_NUMBER
Definition:
Message.php:24
Commercetools\Api\Models\Message\Message\DISCRIMINATOR_FIELD
const DISCRIMINATOR_FIELD
Definition:
Message.php:21
Commercetools\Api\Models\Message\Message\setResourceUserProvidedIdentifiers
setResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
Commercetools\Api\Models\Message\Message\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
Message.php:22
Commercetools\Api\Models\Message\Message\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Message\Message\getResourceUserProvidedIdentifiers
getResourceUserProvidedIdentifiers()
Commercetools\Api\Models\Message\Message\setSequenceNumber
setSequenceNumber(?int $sequenceNumber)
Commercetools\Api\Models\Message\Message\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Message\Message\getId
getId()
Commercetools\Api\Models\Message\Message\FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS
const FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS
Definition:
Message.php:28
Commercetools\Api\Models\Message\Message\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Message\Message\setResourceVersion
setResourceVersion(?int $resourceVersion)
Commercetools\Api\Models\Message\Message\getSequenceNumber
getSequenceNumber()
Commercetools\Api\Models\Message\Message\setId
setId(?string $id)
Commercetools\Api\Models\Message\Message\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Message\Message\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\Message\Message\getType
getType()
Commercetools\Api\Models\Message\Message\getResourceVersion
getResourceVersion()
Commercetools\Api\Models\Message\UserProvidedIdentifiers
Definition:
UserProvidedIdentifiers.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Message
Definition:
ApprovalFlowApprovedMessage.php:9
Generated by
1.9.1