| 1 | <?php |
||
| 10 | class StateChanged |
||
| 11 | { |
||
| 12 | use SerializesModels; |
||
| 13 | |||
| 14 | public ?State $initialState = null; |
||
|
|
|||
| 15 | |||
| 16 | public ?State $finalState = null; |
||
| 17 | |||
| 18 | public Transition $transition; |
||
| 19 | |||
| 20 | public Model $model; |
||
| 21 | |||
| 22 | public function __construct( |
||
| 23 | ?State $initialState, |
||
| 24 | ?State $finalState, |
||
| 25 | Transition $transition, |
||
| 26 | Model $model |
||
| 27 | ) { |
||
| 28 | $this->initialState = $initialState; |
||
| 29 | $this->finalState = $finalState; |
||
| 30 | $this->transition = $transition; |
||
| 31 | $this->model = $model; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |