Institution::identifiableAttribute()   A
last analyzed

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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Models;
4
5
use Backpack\CRUD\app\Models\Traits\CrudTrait;
6
use Illuminate\Database\Eloquent\Model;
7
8
/**
9
 * @mixin IdeHelperInstitution
10
 */
11
class Institution extends Model
12
{
13
    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\Institution: $fakeColumns, $identifiableAttribute, $Type
Loading history...
14
15
    protected $guarded = ['id'];
16
17
    public function identifiableAttribute()
18
    {
19
        return $this->name;
20
    }
21
}
22