Passed
Push — master ( 8c9d15...53e72a )
by Thomas
07:13
created

SkillEvaluation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A skill() 0 3 1
A skill_scale() 0 3 1
A enrollment() 0 3 1
1
<?php
2
3
namespace App\Models\Skills;
4
5
use App\Models\Enrollment;
6
use Backpack\CRUD\app\Models\Traits\CrudTrait;
7
use Illuminate\Database\Eloquent\Model;
8
9
class SkillEvaluation extends Model
10
{
11
    protected $guarded = ['id'];
12
    protected $with = ['skill', 'skill_scale'];
13
14
    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\Skills\SkillEvaluation: $fakeColumns, $identifiableAttribute, $Type
Loading history...
15
16
    public function skill()
17
    {
18
        return $this->belongsTo(Skill::class);
19
    }
20
21
    public function enrollment()
22
    {
23
        return $this->belongsTo(Enrollment::class);
24
    }
25
26
    public function skill_scale()
27
    {
28
        return $this->belongsTo(SkillScale::class);
29
    }
30
}
31