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

SkillEvaluation::enrollment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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