Passed
Push — task/user-api-endpoint ( 6e4649...f0b85b )
by Chris
04:32
created

JobPosterStatus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A job_posters() 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 JobPosterStatus
10
 *
11
 * @property int $id
12
 * @property string $name
13
 * @property string $value
14
 * @property \Jenssegers\Date\Date $created_at
15
 * @property \Jenssegers\Date\Date $updated_at
16
 *
17
 * @property \Illuminate\Database\Eloquent\Collection $job_posters
18
 *
19
 * Localized Properties:
20
 * @property string $value
21
 *
22
 */
23
class JobPosterStatus extends BaseModel
24
{
25
    use HasTranslations;
26
27
    public $translatable = ['value'];
28
    protected $fillable = [];
29
30
    public function job_posters() // phpcs:ignore
31
    {
32
        return $this->hasMany(\App\Models\JobPoster::class);
33
    }
34
}
35