| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class AlwaysThrowExceptionOnFailure implements TransitionCallback |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param mixed $context |
||
| 12 | * @param StateMachine $machine |
||
| 13 | */ |
||
| 14 | 28 | public function beforeStateChange($context, StateMachine $machine): void |
|
| 16 | 28 | } |
|
| 17 | |||
| 18 | /** |
||
| 19 | * @param mixed $context |
||
| 20 | * @param StateMachine $machine |
||
| 21 | */ |
||
| 22 | 19 | public function afterStateChange($context, StateMachine $machine): void |
|
| 23 | { |
||
| 24 | 19 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param InvalidStateTransitionException $exception |
||
| 28 | * @param mixed $context |
||
| 29 | * @param StateMachine $machine |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | * @throws InvalidStateTransitionException |
||
| 33 | */ |
||
| 34 | 9 | public function onFailure(InvalidStateTransitionException $exception, $context, StateMachine $machine): string |
|
| 37 | } |
||
| 38 | } |
||
| 39 |