Event::forceDeleted()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace App\Support\Models;
4
5
/**
6
 * @method static void retrieved(\Closure|string $callback) Register a retrieved model event with the dispatcher.
7
 * @method static void creating(\Closure|string $callback) Register a creating model event with the dispatcher.
8
 * @method static void created(\Closure|string $callback) Register a created model event with the dispatcher.
9
 * @method static void updating(\Closure|string $callback) Register a updating model event with the dispatcher.
10
 * @method static void updated(\Closure|string $callback) Register a updated model event with the dispatcher.
11
 * @method static void saving(\Closure|string $callback) Register a saving model event with the dispatcher.
12
 * @method static void saved(\Closure|string $callback) Register a saved model event with the dispatcher.
13
 * @method static void restoring(\Closure|string $callback) Register a restoring model event with the dispatcher.
14
 * @method static void restored(\Closure|string $callback) Register a restored model event with the dispatcher.
15
 * @method static void replicating(\Closure|string $callback) Register a replicating model event with the dispatcher.
16
 * @method static void deleting(\Closure|string $callback) Register a deleting model event with the dispatcher.
17
 * @method static void deleted(\Closure|string $callback) Register a deleted model event with the dispatcher.
18
 *
19
 * @see \Illuminate\Database\Eloquent\Concerns\HasEvents
20
 */
21
trait Event
22
{
23
    /**
24
     * Register a forceDeleted model event with the dispatcher.
25
     *
26
     * @param  \Closure|string  $callback
27
     * @return void
28
     */
29
    public static function forceDeleted($callback)
30
    {
31
        static::registerModelEvent('forceDeleted', $callback);
32
    }
33
}
34