1 | <?php |
||
13 | class LocaleDeleted implements ShouldQueue |
||
14 | { |
||
15 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
16 | |||
17 | /** @var \BBSLab\NovaTranslation\Models\Locale */ |
||
18 | protected $locale; |
||
19 | |||
20 | /** |
||
21 | * Create a new job instance. |
||
22 | * |
||
23 | * @param \BBSLab\NovaTranslation\Models\Locale $locale |
||
24 | */ |
||
25 | public function __construct(Locale $locale) |
||
29 | |||
30 | /** |
||
31 | * Execute the job. |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | public function handle() |
||
44 | |||
45 | /** |
||
46 | * @param \BBSLab\NovaTranslation\Models\Translation $translation |
||
47 | * @throws \Exception |
||
48 | */ |
||
49 | protected function deleteTranslation(Translation $translation) |
||
62 | } |
||
63 |