SecurityClearance::job_posters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace App\Models\Lookup;
4
5
use App\Models\BaseModel;
6
use Spatie\Translatable\HasTranslations;
7
8
/**
9
 * Class SecurityClearance
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 SecurityClearance extends BaseModel
22
{
23
24
    use HasTranslations;
25
26
    public $translatable = ['value'];
27
    protected $fillable = [];
28
29
    public function job_posters() //phpcs:ignore
30
    {
31
        return $this->hasMany(\App\Models\JobPoster::class);
32
    }
33
}
34