Passed
Push — master ( 795d23...149f73 )
by Grant
06:52 queued 12s
created

TalentStream   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 11
rs 10
c 0
b 0
f 0

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 Backpack\CRUD\app\Models\Traits\CrudTrait;
7
use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\HasTranslations;
8
9
/**
10
 * Class TalentStream
11
 *
12
 * @property int $id
13
 * @property string $key
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 $name
21
 */
22
class TalentStream extends BaseModel
23
{
24
    use CrudTrait;
25
    use HasTranslations;
26
27
    public $translatable = ['name'];
28
    protected $fillable = ['key', 'name'];
29
30
    public function job_posters() //phpcs:ignore
31
    {
32
        return $this->hasMany(\App\Models\JobPoster::class);
33
    }
34
}
35