| Total Complexity | 0 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | final class StateEventStore |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * This event is performed before any transition on the context. |
||
| 14 | * |
||
| 15 | * @see TransitionWasRequested |
||
| 16 | */ |
||
| 17 | const BEFORE_TRANSITION = 'star_state.before_transition'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * This event is performed after any transition is executed on the context. |
||
| 21 | * |
||
| 22 | * @see TransitionWasSuccessful |
||
| 23 | */ |
||
| 24 | const AFTER_TRANSITION = 'star_state.after_transition'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * This event is performed before the transition exception is triggered. |
||
| 28 | * |
||
| 29 | * @see TransitionWasFailed |
||
| 30 | */ |
||
| 31 | const FAILURE_TRANSITION = 'star_state.transition_failure'; |
||
| 32 | } |
||
| 33 |