Total Complexity | 8 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class BlameableObserver |
||
8 | { |
||
9 | /** |
||
10 | * Listening to any creating events. |
||
11 | * |
||
12 | * @param \Illuminate\Database\Eloquent\Model $model |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function creating(Model $model): void |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Listening to any deleted events. |
||
23 | * |
||
24 | * @param \Illuminate\Database\Eloquent\Model $model |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function deleted(Model $model): void |
||
37 | } |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Listening to any restoring events. |
||
42 | * |
||
43 | * @param \Illuminate\Database\Eloquent\Model $model |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | public function restoring(Model $model): void |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Listening to any saving events. |
||
54 | * |
||
55 | * @param \Illuminate\Database\Eloquent\Model $model |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | public function saving(Model $model): void |
||
64 |