Passed
Push — task/screening-plan-hr ( 582176...c52cc0 )
by Yonathan
07:46 queued 03:08
created

Relationship::relationship_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 Relationship
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 $references
17
 *
18
 * Localized Properties:
19
 * @property string $value
20
 */
21
class Relationship extends BaseModel
22
{
23
    use HasTranslations;
24
25
    public $translatable = ['value'];
26
    protected $fillable = [];
27
28
    public function references()
29
    {
30
        return $this->hasMany(\App\Models\Reference::class);
31
    }
32
}
33