1 | <?php |
||
16 | class Transition implements TransitionInterface, PropertiesAwareTransitionInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $initialStates; |
||
22 | |||
23 | /* |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $state; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $name; |
||
32 | |||
33 | /** |
||
34 | * @var callable |
||
35 | */ |
||
36 | protected $guard; |
||
37 | |||
38 | /** |
||
39 | * @var OptionsResolver |
||
40 | */ |
||
41 | protected $propertiesOptionsResolver; |
||
42 | |||
43 | /** |
||
44 | * @param string $name |
||
45 | * @param string|array $initialStates |
||
46 | * @param string $state |
||
47 | * @param callable|null $guard |
||
48 | * @param OptionsResolver $propertiesOptionsResolver |
||
49 | */ |
||
50 | 165 | public function __construct( |
|
67 | |||
68 | /** |
||
69 | * @param string|StateInterface $state |
||
70 | */ |
||
71 | public function addInitialState($state) |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | 145 | public function getInitialStates() |
|
87 | |||
88 | /** |
||
89 | * {@inheritDoc} |
||
90 | */ |
||
91 | 145 | public function getState() |
|
95 | |||
96 | /** |
||
97 | * {@inheritDoc} |
||
98 | */ |
||
99 | 15 | public function process(StateMachineInterface $stateMachine) |
|
102 | |||
103 | /** |
||
104 | * {@inheritDoc} |
||
105 | */ |
||
106 | 145 | public function getName() |
|
110 | |||
111 | /** |
||
112 | * @return callable|null |
||
113 | */ |
||
114 | 40 | public function getGuard() |
|
118 | |||
119 | /** |
||
120 | * {@inheritDoc} |
||
121 | */ |
||
122 | 45 | public function resolveProperties(array $properties) |
|
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | public function __toString() |
||
134 | } |
||
135 |