1 | <?php |
||
16 | class Process extends Named implements ProcessInterface, MergeableInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var StateCollection |
||
20 | */ |
||
21 | private $states; |
||
22 | |||
23 | /** |
||
24 | * @var StateInterface |
||
25 | */ |
||
26 | private $initialState; |
||
27 | |||
28 | /** |
||
29 | * @var StateCollectionMerger |
||
30 | */ |
||
31 | private $stateCollectionMerger; |
||
32 | |||
33 | /** |
||
34 | * @param string $name |
||
35 | * @param StateInterface $initialState |
||
36 | */ |
||
37 | 15 | public function __construct($name, StateInterface $initialState) |
|
44 | |||
45 | /** |
||
46 | * @param StateInterface $state |
||
47 | */ |
||
48 | 15 | protected function addState(StateInterface $state) |
|
64 | |||
65 | /** |
||
66 | * @param SetupHelper $setupHelper |
||
67 | */ |
||
68 | 15 | protected function initProcess(SetupHelper $setupHelper) |
|
72 | |||
73 | /** |
||
74 | */ |
||
75 | 15 | protected function createCollection() |
|
80 | |||
81 | /** |
||
82 | * @see MetaborStd\Statemachine.ProcessInterface::getInitialState() |
||
83 | */ |
||
84 | 10 | public function getInitialState() |
|
88 | |||
89 | /** |
||
90 | * @see MetaborStd\Statemachine.ProcessInterface::getStates() |
||
91 | */ |
||
92 | 1 | public function getStates() |
|
96 | |||
97 | /** |
||
98 | * @param string $name |
||
99 | */ |
||
100 | 2 | public function getState($name) |
|
104 | |||
105 | /** |
||
106 | * @param string $name |
||
107 | * |
||
108 | * @return bool |
||
109 | */ |
||
110 | 1 | public function hasState($name) |
|
114 | |||
115 | /** |
||
116 | * @return StateCollectionMerger |
||
117 | */ |
||
118 | 1 | public function getStateCollectionMerger() |
|
126 | |||
127 | /** |
||
128 | * @see \MetaborStd\MergeableInterface::merge() |
||
129 | */ |
||
130 | 1 | public function merge($source) |
|
135 | } |
||
136 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.