@@ -27,6 +27,9 @@ |
||
| 27 | 27 | /** @var \Illuminate\Database\Eloquent\Model */ |
| 28 | 28 | public $model; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param State $initialState |
|
| 32 | + */ |
|
| 30 | 33 | public function __construct( |
| 31 | 34 | ?State $initialState, |
| 32 | 35 | ?State $finalState, |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\ModelStates\Events; |
| 4 | 4 | |
| 5 | +use Illuminate\Database\Eloquent\Model; |
|
| 6 | +use Illuminate\Queue\SerializesModels; |
|
| 5 | 7 | use Spatie\ModelStates\State; |
| 6 | 8 | use Spatie\ModelStates\Transition; |
| 7 | -use Illuminate\Queue\SerializesModels; |
|
| 8 | -use Illuminate\Database\Eloquent\Model; |
|
| 9 | 9 | |
| 10 | 10 | class StateChanged |
| 11 | 11 | { |