@@ -208,7 +208,7 @@ |
||
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | /** |
| 211 | - * @param string|\Spatie\ModelStates\Transition $transitionClass |
|
| 211 | + * @param string|\Spatie\ModelStates\Transition $transition |
|
| 212 | 212 | * @param mixed ...$args |
| 213 | 213 | * |
| 214 | 214 | * @return \Illuminate\Database\Eloquent\Model |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\ModelStates; |
| 4 | 4 | |
| 5 | -use Carbon\Carbon; |
|
| 6 | 5 | use Illuminate\Database\Eloquent\Model; |
| 7 | 6 | use Illuminate\Support\Collection; |
| 8 | 7 | use JsonSerializable; |
@@ -27,6 +27,10 @@ |
||
| 27 | 27 | /** @var \Illuminate\Database\Eloquent\Model */ |
| 28 | 28 | public $model; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param State $initialState |
|
| 32 | + * @param null|State $finalState |
|
| 33 | + */ |
|
| 30 | 34 | public function __construct( |
| 31 | 35 | ?State $initialState, |
| 32 | 36 | ?State $finalState, |