SkillEvaluation   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A skill_scale() 0 3 1
A enrollment() 0 3 1
A skill() 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
/**
10
 * @mixin IdeHelperSkillEvaluation
11
 */
12
class SkillEvaluation extends Model
13
{
14
    protected $guarded = ['id'];
15
16
    protected $with = ['skill', 'skill_scale'];
17
18
    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...
19
20
    public function skill()
21
    {
22
        return $this->belongsTo(Skill::class);
23
    }
24
25
    public function enrollment()
26
    {
27
        return $this->belongsTo(Enrollment::class);
28
    }
29
30
    public function skill_scale()
31
    {
32
        return $this->belongsTo(SkillScale::class);
33
    }
34
}
35