Campus
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 11
wmc 0
1
<?php
2
3
namespace App\Models;
4
5
use Backpack\CRUD\app\Models\Traits\CrudTrait;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Database\Eloquent\SoftDeletes;
8
use Spatie\Translatable\HasTranslations;
9
10
/**
11
 * NOTE: In the current configuration, the campus with the ID of 1 represent the school itself
12
 * the campus model with the ID of 2 represents all external courses
13
 *
14
 * @mixin IdeHelperCampus
15
 */
16
class Campus extends Model
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\Campus: $fakeColumns, $identifiableAttribute, $Type
Loading history...
19
    use SoftDeletes;
20
    use HasTranslations;
21
22
    public array $translatable = ['name'];
23
24
    public $timestamps = false;
25
26
    protected $fillable = ['name'];
27
}
28