Passed
Push — feature/hr-admin-panel ( cd39be )
by Grant
06:22 queued 10s
created

TeamCulture::team_culture_translations()   A

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 2
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;
4
5
use App\Models\BaseModel;
6
use Spatie\Translatable\HasTranslations;
7
8
/**
9
 * Class TeamCulture
10
 *
11
 * @property int $id
12
 * @property int $team_size
13
 * @property string $gc_directory_url
14
 * @property int $manager_id
15
 * @property \Jenssegers\Date\Date $created_at
16
 * @property \Jenssegers\Date\Date $updated_at
17
 *
18
 * @property \App\Models\Manager $manager
19
 *
20
 * Localized Properties:
21
 * @property string $narrative_text
22
 * @property string $operating_context
23
 * @property string $what_we_value
24
 * @property string $how_we_work
25
 */
26
27
class TeamCulture extends BaseModel
28
{
29
    use HasTranslations;
30
31
    public $translatable = [
32
        'narrative_text',
33
        'operating_context',
34
        'what_we_value',
35
        'how_we_work'
36
    ];
37
38
    protected $casts = [
39
        'team_size' => 'int',
40
        'manager_id' => 'int'
41
    ];
42
    protected $fillable = [
43
        'team_size',
44
        'gc_directory_url',
45
        'narrative_text',
46
        'operating_context',
47
        'what_we_value',
48
        'how_we_work'
49
    ];
50
51
    public function manager()
52
    {
53
        return $this->belongsTo(\App\Models\Manager::class);
54
    }
55
}
56