commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
StateDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
14 
15 interface StateDraft extends JsonObject
16 {
17  public const FIELD_KEY = 'key';
18  public const FIELD_TYPE = 'type';
19  public const FIELD_NAME = 'name';
20  public const FIELD_DESCRIPTION = 'description';
21  public const FIELD_INITIAL = 'initial';
22  public const FIELD_ROLES = 'roles';
23  public const FIELD_TRANSITIONS = 'transitions';
24 
31  public function getKey();
32 
39  public function getType();
40 
47  public function getName();
48 
55  public function getDescription();
56 
63  public function getInitial();
64 
71  public function getRoles();
72 
84  public function getTransitions();
85 
89  public function setKey(?string $key): void;
90 
94  public function setType(?string $type): void;
95 
99  public function setName(?LocalizedString $name): void;
100 
104  public function setDescription(?LocalizedString $description): void;
105 
109  public function setInitial(?bool $initial): void;
110 
114  public function setRoles(?array $roles): void;
115 
119  public function setTransitions(?StateResourceIdentifierCollection $transitions): void;
120 }
setDescription(?LocalizedString $description)
setTransitions(?StateResourceIdentifierCollection $transitions)