Passed
Push — task/common-translation-packag... ( 0d3f67 )
by Grant
12:27
created

Province::province_translations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Models\Lookup;
4
5
use App\Models\BaseModel;
6
use Spatie\Translatable\HasTranslations;
7
8
/**
9
 * Class Province
10
 *
11
 * @property int $id
12
 * @property string $name
13
 * @property \Jenssegers\Date\Date $created_at
14
 * @property \Jenssegers\Date\Date $updated_at
15
 *
16
 * @property \Illuminate\Database\Eloquent\Collection $job_posters
17
 *
18
 * Localized Properties:
19
 * @property string $value
20
 */
21
class Province extends BaseModel
22
{
23
    use HasTranslations;
24
25
    public $translatable = ['value'];
1 ignored issue
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
26
    protected $fillable = [];
1 ignored issue
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
27
28
    public function job_posters() //phpcs:ignore
29
    {
30
        return $this->hasMany(\App\Models\JobPoster::class);
31
    }
32
}
33