| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CascadeSoftDeletes implements ShouldQueue |
||
| 13 | { |
||
| 14 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
|
|
|||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Model |
||
| 18 | */ |
||
| 19 | public $model; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $event; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var \Carbon\Carbon |
||
| 28 | */ |
||
| 29 | public $instanceDeletedAt; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Create a new job instance. |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function __construct($model, $event, $instanceDeletedAt) |
||
| 37 | { |
||
| 38 | $this->model = $model; |
||
| 39 | $this->event = $event; |
||
| 40 | $this->instanceDeletedAt = $instanceDeletedAt; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Execute the job. |
||
| 45 | * |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | public function handle() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |