commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
State.php
1<?php
2
3declare(strict_types=1);
10
17use DateTimeImmutable;
18
19interface 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}
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setTransitions(?StateReferenceCollection $transitions)
setCreatedAt(?DateTimeImmutable $createdAt)
setName(?LocalizedString $name)
setDescription(?LocalizedString $description)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setCreatedBy(?CreatedBy $createdBy)