commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
State
State.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\State
;
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\LocalizedString
;
15
use
Commercetools\Base\DateTimeImmutableCollection
;
16
use
Commercetools\Base\JsonObject
;
17
use DateTimeImmutable;
18
19
interface
State
extends
BaseResource
20
{
21
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
22
public
const
FIELD_CREATED_BY
=
'createdBy'
;
23
public
const
FIELD_KEY
=
'key'
;
24
public
const
FIELD_TYPE
=
'type'
;
25
public
const
FIELD_NAME
=
'name'
;
26
public
const
FIELD_DESCRIPTION
=
'description'
;
27
public
const
FIELD_INITIAL
=
'initial'
;
28
public
const
FIELD_BUILT_IN
=
'builtIn'
;
29
public
const
FIELD_ROLES
=
'roles'
;
30
public
const
FIELD_TRANSITIONS
=
'transitions'
;
31
38
public
function
getId
();
39
46
public
function
getVersion
();
47
54
public
function
getCreatedAt
();
55
62
public
function
getLastModifiedAt
();
63
70
public
function
getLastModifiedBy
();
71
78
public
function
getCreatedBy
();
79
86
public
function
getKey
();
87
94
public
function
getType
();
95
102
public
function
getName
();
103
110
public
function
getDescription
();
111
118
public
function
getInitial
();
119
126
public
function
getBuiltIn
();
127
134
public
function
getRoles
();
135
146
public
function
getTransitions
();
147
151
public
function
setId
(?
string
$id): void;
152
156
public
function
setVersion
(?
int
$version): void;
157
161
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
162
166
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
167
171
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
172
176
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
177
181
public
function
setKey
(?
string
$key): void;
182
186
public
function
setType
(?
string
$type): void;
187
191
public
function
setName
(?
LocalizedString
$name): void;
192
196
public
function
setDescription
(?
LocalizedString
$description): void;
197
201
public
function
setInitial
(?
bool
$initial): void;
202
206
public
function
setBuiltIn
(?
bool
$builtIn): void;
207
211
public
function
setRoles
(?array $roles): void;
212
216
public
function
setTransitions
(?
StateReferenceCollection
$transitions): void;
217
}
Commercetools\Api\Models\State\StateReferenceCollection
Definition:
StateReferenceCollection.php:22
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\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\State\State
Definition:
State.php:20
Commercetools\Api\Models\State\State\setInitial
setInitial(?bool $initial)
Commercetools\Api\Models\State\State\setType
setType(?string $type)
Commercetools\Api\Models\State\State\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\State\State\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
State.php:22
Commercetools\Api\Models\State\State\setTransitions
setTransitions(?StateReferenceCollection $transitions)
Commercetools\Api\Models\State\State\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\State\State\setVersion
setVersion(?int $version)
Commercetools\Api\Models\State\State\setKey
setKey(?string $key)
Commercetools\Api\Models\State\State\FIELD_TYPE
const FIELD_TYPE
Definition:
State.php:24
Commercetools\Api\Models\State\State\FIELD_TRANSITIONS
const FIELD_TRANSITIONS
Definition:
State.php:30
Commercetools\Api\Models\State\State\getInitial
getInitial()
Commercetools\Api\Models\State\State\getBuiltIn
getBuiltIn()
Commercetools\Api\Models\State\State\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\State\State\FIELD_BUILT_IN
const FIELD_BUILT_IN
Definition:
State.php:28
Commercetools\Api\Models\State\State\FIELD_ROLES
const FIELD_ROLES
Definition:
State.php:29
Commercetools\Api\Models\State\State\getKey
getKey()
Commercetools\Api\Models\State\State\setBuiltIn
setBuiltIn(?bool $builtIn)
Commercetools\Api\Models\State\State\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\State\State\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\State\State\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
State.php:26
Commercetools\Api\Models\State\State\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\State\State\getVersion
getVersion()
Commercetools\Api\Models\State\State\setRoles
setRoles(?array $roles)
Commercetools\Api\Models\State\State\getDescription
getDescription()
Commercetools\Api\Models\State\State\FIELD_INITIAL
const FIELD_INITIAL
Definition:
State.php:27
Commercetools\Api\Models\State\State\getRoles
getRoles()
Commercetools\Api\Models\State\State\getName
getName()
Commercetools\Api\Models\State\State\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\State\State\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\State\State\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
State.php:21
Commercetools\Api\Models\State\State\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\State\State\FIELD_NAME
const FIELD_NAME
Definition:
State.php:25
Commercetools\Api\Models\State\State\getTransitions
getTransitions()
Commercetools\Api\Models\State\State\getType
getType()
Commercetools\Api\Models\State\State\FIELD_KEY
const FIELD_KEY
Definition:
State.php:23
Commercetools\Api\Models\State\State\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\State\State\getId
getId()
Commercetools\Api\Models\State\State\setId
setId(?string $id)
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\State
Definition:
State.php:9
Generated by
1.9.1