1 | <?php |
||
2 | |||
3 | namespace App\Events; |
||
4 | |||
5 | use App\Model\Admin\Entity; |
||
6 | use Illuminate\Broadcasting\InteractsWithSockets; |
||
7 | use Illuminate\Foundation\Events\Dispatchable; |
||
8 | use Illuminate\Queue\SerializesModels; |
||
9 | use Illuminate\Support\Collection; |
||
10 | |||
11 | class ContentDeleted |
||
12 | { |
||
13 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
14 | |||
15 | public $contents; |
||
16 | public $entity; |
||
17 | |||
18 | /** |
||
19 | * Create a new event instance. |
||
20 | * |
||
21 | * @param Collection $contents |
||
22 | * @param Entity $entity |
||
23 | * @return void |
||
24 | */ |
||
25 | public function __construct(Collection $contents, $entity) |
||
26 | { |
||
27 | $this->contents = $contents; |
||
28 | $this->entity = $entity; |
||
29 | } |
||
30 | } |
||
31 |