commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
State
StateDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\State
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
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
}
Commercetools\Api\Models\State\StateResourceIdentifierCollection
Definition:
StateResourceIdentifierCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\State\StateDraft
Definition:
StateDraft.php:16
Commercetools\Api\Models\State\StateDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\State\StateDraft\getType
getType()
Commercetools\Api\Models\State\StateDraft\getInitial
getInitial()
Commercetools\Api\Models\State\StateDraft\getDescription
getDescription()
Commercetools\Api\Models\State\StateDraft\FIELD_TYPE
const FIELD_TYPE
Definition:
StateDraft.php:18
Commercetools\Api\Models\State\StateDraft\FIELD_TRANSITIONS
const FIELD_TRANSITIONS
Definition:
StateDraft.php:23
Commercetools\Api\Models\State\StateDraft\setInitial
setInitial(?bool $initial)
Commercetools\Api\Models\State\StateDraft\FIELD_INITIAL
const FIELD_INITIAL
Definition:
StateDraft.php:21
Commercetools\Api\Models\State\StateDraft\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\State\StateDraft\setType
setType(?string $type)
Commercetools\Api\Models\State\StateDraft\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
StateDraft.php:20
Commercetools\Api\Models\State\StateDraft\FIELD_ROLES
const FIELD_ROLES
Definition:
StateDraft.php:22
Commercetools\Api\Models\State\StateDraft\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\State\StateDraft\FIELD_KEY
const FIELD_KEY
Definition:
StateDraft.php:17
Commercetools\Api\Models\State\StateDraft\FIELD_NAME
const FIELD_NAME
Definition:
StateDraft.php:19
Commercetools\Api\Models\State\StateDraft\setRoles
setRoles(?array $roles)
Commercetools\Api\Models\State\StateDraft\getKey
getKey()
Commercetools\Api\Models\State\StateDraft\getRoles
getRoles()
Commercetools\Api\Models\State\StateDraft\getTransitions
getTransitions()
Commercetools\Api\Models\State\StateDraft\getName
getName()
Commercetools\Api\Models\State\StateDraft\setTransitions
setTransitions(?StateResourceIdentifierCollection $transitions)
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\State
Definition:
State.php:9
Generated by
1.9.1