1 | <?php |
||
14 | class StateCollection implements StateCollectionInterface, MergeableInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var NamedCollection |
||
18 | */ |
||
19 | private $states; |
||
20 | |||
21 | /** |
||
22 | * @var StateCollectionMerger |
||
23 | */ |
||
24 | private $stateCollectionMerger; |
||
25 | |||
26 | /** |
||
27 | */ |
||
28 | 25 | public function __construct() |
|
32 | |||
33 | /** |
||
34 | * @see MetaborStd\Statemachine.StateCollectionInterface::getState() |
||
35 | */ |
||
36 | 9 | public function getState($name) |
|
40 | |||
41 | /** |
||
42 | * @see MetaborStd\Statemachine.StateCollectionInterface::getStates() |
||
43 | */ |
||
44 | 10 | public function getStates() |
|
48 | |||
49 | /** |
||
50 | * @see MetaborStd\Statemachine.StateCollectionInterface::hasState() |
||
51 | */ |
||
52 | 22 | public function hasState($name) |
|
56 | |||
57 | /** |
||
58 | * @param StateInterface $state |
||
59 | */ |
||
60 | 25 | public function addState(StateInterface $state) |
|
64 | |||
65 | /** |
||
66 | * @return StateCollectionMerger |
||
67 | */ |
||
68 | public function getStateCollectionMerger() |
||
76 | |||
77 | /** |
||
78 | * @see \MetaborStd\MergeableInterface::merge() |
||
79 | */ |
||
80 | public function merge($source) |
||
85 | } |
||
86 |