|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Commercetools\Core\Builder\Update; |
|
4
|
|
|
|
|
5
|
|
|
use Commercetools\Core\Request\States\Command\StateSetDescriptionAction; |
|
6
|
|
|
use Commercetools\Core\Request\States\Command\StateChangeTypeAction; |
|
7
|
|
|
use Commercetools\Core\Request\States\Command\TransitionStateAction; |
|
8
|
|
|
use Commercetools\Core\Request\States\Command\StateRemoveRolesAction; |
|
9
|
|
|
use Commercetools\Core\Request\States\Command\StateSetNameAction; |
|
10
|
|
|
use Commercetools\Core\Request\States\Command\StateAddRolesAction; |
|
11
|
|
|
use Commercetools\Core\Request\States\Command\StateChangeInitialAction; |
|
12
|
|
|
use Commercetools\Core\Request\States\Command\StateSetTransitionsAction; |
|
13
|
|
|
use Commercetools\Core\Request\States\Command\StateChangeKeyAction; |
|
14
|
|
|
use Commercetools\Core\Request\States\Command\StateSetRolesAction; |
|
15
|
|
|
|
|
16
|
|
|
class StatesActionBuilder |
|
17
|
|
|
{ |
|
18
|
|
|
/** |
|
19
|
|
|
* @return StateSetDescriptionAction |
|
20
|
|
|
*/ |
|
21
|
|
|
public function setDescription() |
|
22
|
|
|
{ |
|
23
|
|
|
return StateSetDescriptionAction::of(); |
|
24
|
|
|
} |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* @return StateChangeTypeAction |
|
28
|
|
|
*/ |
|
29
|
|
|
public function changeType() |
|
30
|
|
|
{ |
|
31
|
|
|
return StateChangeTypeAction::of(); |
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @return TransitionStateAction |
|
36
|
|
|
*/ |
|
37
|
|
|
public function transitionState() |
|
38
|
|
|
{ |
|
39
|
|
|
return TransitionStateAction::of(); |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* @return StateRemoveRolesAction |
|
44
|
|
|
*/ |
|
45
|
|
|
public function removeRoles() |
|
46
|
|
|
{ |
|
47
|
|
|
return StateRemoveRolesAction::of(); |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* @return StateSetNameAction |
|
52
|
|
|
*/ |
|
53
|
|
|
public function setName() |
|
54
|
|
|
{ |
|
55
|
|
|
return StateSetNameAction::of(); |
|
56
|
|
|
} |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @return StateAddRolesAction |
|
60
|
|
|
*/ |
|
61
|
|
|
public function addRoles() |
|
62
|
|
|
{ |
|
63
|
|
|
return StateAddRolesAction::of(); |
|
64
|
|
|
} |
|
65
|
|
|
|
|
66
|
|
|
/** |
|
67
|
|
|
* @return StateChangeInitialAction |
|
68
|
|
|
*/ |
|
69
|
|
|
public function changeInitial() |
|
70
|
|
|
{ |
|
71
|
|
|
return StateChangeInitialAction::of(); |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @return StateSetTransitionsAction |
|
76
|
|
|
*/ |
|
77
|
|
|
public function setTransitions() |
|
78
|
|
|
{ |
|
79
|
|
|
return StateSetTransitionsAction::of(); |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* @return StateChangeKeyAction |
|
84
|
|
|
*/ |
|
85
|
|
|
public function changeKey() |
|
86
|
|
|
{ |
|
87
|
|
|
return StateChangeKeyAction::of(); |
|
88
|
|
|
} |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @return StateSetRolesAction |
|
92
|
|
|
*/ |
|
93
|
|
|
public function setRoles() |
|
94
|
|
|
{ |
|
95
|
|
|
return StateSetRolesAction::of(); |
|
96
|
|
|
} |
|
97
|
|
|
} |
|
98
|
|
|
|