SkillScale   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getScaleNameAttribute() 0 3 1
1
<?php
2
3
namespace App\Models\Skills;
4
5
use Backpack\CRUD\app\Models\Traits\CrudTrait;
6
use Illuminate\Database\Eloquent\Model;
7
use Spatie\Translatable\HasTranslations;
8
9
/**
10
 * @mixin IdeHelperSkillScale
11
 */
12
class SkillScale extends Model
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\SkillScale: $fakeColumns, $identifiableAttribute, $Type
Loading history...
15
    use HasTranslations;
16
17
    protected $guarded = ['id'];
18
19
    public array $translatable = ['shortname', 'name'];
20
21
    protected $appends = ['scale_name'];
22
23
    public function getScaleNameAttribute()
24
    {
25
        return $this->name;
26
    }
27
}
28