Level   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 24
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A skill() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
use App\Models\Skills\Skill;
6
use Backpack\CRUD\app\Models\Traits\CrudTrait;
7
use Illuminate\Database\Eloquent\Model;
8
use Illuminate\Database\Eloquent\SoftDeletes;
9
10
/**
11
 * @mixin IdeHelperLevel
12
 */
13
class Level extends Model
14
{
15
    use CrudTrait;
0 ignored issues
show
introduced by
The trait Backpack\CRUD\app\Models\Traits\CrudTrait requires some properties which are not provided by App\Models\Level: $fakeColumns, $identifiableAttribute, $Type
Loading history...
16
    use SoftDeletes;
17
18
    public $timestamps = false;
19
20
    protected $guarded = ['id'];
21
22
    /*
23
    |--------------------------------------------------------------------------
24
    | FUNCTIONS
25
    |--------------------------------------------------------------------------
26
    */
27
28
    /*
29
    |--------------------------------------------------------------------------
30
    | RELATIONS
31
    |--------------------------------------------------------------------------
32
    */
33
34
    public function skill()
35
    {
36
        return $this->hasMany(Skill::class);
37
    }
38
39
    /*
40
    |--------------------------------------------------------------------------
41
    | SCOPES
42
    |--------------------------------------------------------------------------
43
    */
44
45
    /*
46
    |--------------------------------------------------------------------------
47
    | ACCESORS
48
    |--------------------------------------------------------------------------
49
    */
50
51
    /*
52
    |--------------------------------------------------------------------------
53
    | MUTATORS
54
    |--------------------------------------------------------------------------
55
    */
56
}
57