Passed
Push — task/experience-skills ( d76f21 )
by Grant
05:20
created

EducationStatus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 5
c 1
b 0
f 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A experiences_education() 0 3 1
1
<?php
2
3
namespace App\Models\Lookup;
4
5
use App\Models\BaseModel;
6
use Spatie\Translatable\HasTranslations;
7
8
/**
9
 * Class EducationStatus
10
 *
11
 * @property int $id
12
 * @property string $key
13
 * @property \Jenssegers\Date\Date $created_at
14
 * @property \Jenssegers\Date\Date $updated_at
15
 *
16
 * @property \Illuminate\Database\Eloquent\Collection $experiences_education
17
 *
18
 * Localized Properties:
19
 * @property string $name
20
 */
21
class EducationStatus extends BaseModel
22
{
23
    use HasTranslations;
24
25
    public $translatable = ['name'];
26
    protected $fillable = [];
27
28
    public function experiences_education() //phpcs:ignore
29
    {
30
        return $this->hasMany(\App\Models\ExperienceEducation::class);
31
    }
32
}
33