| 1 | <?php |
||
| 12 | class StatusUpdated |
||
| 13 | { |
||
| 14 | /** @var string */ |
||
| 15 | private $oldStatus; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | private $newStatus; |
||
| 19 | |||
| 20 | /** @var \Illuminate\Database\Eloquent\Model */ |
||
| 21 | private $model; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * StatusUpdated constructor. |
||
| 25 | * |
||
| 26 | * @param string $oldStatus |
||
| 27 | * @param string $newStatus |
||
| 28 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 29 | */ |
||
| 30 | public function __construct(string $oldStatus, string $newStatus, Model $model) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getOldStatus(): string |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getNewStatus(): string |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return \Illuminate\Database\Eloquent\Model |
||
| 55 | */ |
||
| 56 | public function getModel(): Model |
||
| 60 | } |
||
| 61 |