1 | <?php |
||
2 | |||
3 | namespace Uccello\Core\Events; |
||
4 | |||
5 | use Illuminate\Queue\SerializesModels; |
||
6 | use Illuminate\Foundation\Events\Dispatchable; |
||
7 | use Illuminate\Broadcasting\InteractsWithSockets; |
||
8 | use Illuminate\Http\Request; |
||
9 | use Uccello\Core\Models\Domain; |
||
10 | use Uccello\Core\Models\Module; |
||
11 | |||
12 | class BeforeSaveEvent |
||
13 | { |
||
14 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
15 | |||
16 | public $domain; |
||
17 | public $module; |
||
18 | public $request; |
||
19 | public $record; |
||
20 | public $mode; |
||
21 | public $isFromApi; |
||
22 | |||
23 | /** |
||
24 | * Create a new event instance. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function __construct(Domain $domain, Module $module, Request $request, $record, $mode = null, $isFromApi = false) |
||
29 | { |
||
30 | $this->domain = $domain; |
||
31 | $this->module = $module; |
||
32 | $this->request = $request; |
||
33 | $this->record = $record; |
||
34 | $this->mode = $mode; |
||
35 | $this->isFromApi = $isFromApi; |
||
36 | } |
||
37 | } |
||
38 |