1 | <?php |
||
11 | class WeightTransition implements TransitionSelectorInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var TransitionSelectorInterface |
||
15 | */ |
||
16 | protected $innerSelector; |
||
17 | |||
18 | /** |
||
19 | * @var float |
||
20 | */ |
||
21 | protected $epsilon; |
||
22 | |||
23 | /** |
||
24 | * @param TransitionSelectorInterface|null $innerSelector |
||
25 | * @param float $epsilon |
||
26 | */ |
||
27 | public function __construct(TransitionSelectorInterface $innerSelector = null, $epsilon = 0.001) |
||
36 | |||
37 | /** |
||
38 | * @see \MetaborStd\Statemachine\Factory\TransitionSelectorInterface::selectTransition() |
||
39 | */ |
||
40 | public function selectTransition(\Traversable $transitions) |
||
59 | } |
||
60 |