Passed
Push — task/common-translation-packag... ( 398328...094bed )
by Grant
07:16
created

TeamCulture::team_culture_translations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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 = [
1 ignored issue
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
32
        'narrative_text',
33
        'operating_context',
34
        'what_we_value',
35
        'how_we_work'
36
    ];
37
38
    protected $casts = [
1 ignored issue
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
39
        'team_size' => 'int',
40
        'manager_id' => 'int'
41
    ];
42
    protected $fillable = [
1 ignored issue
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
43
        'team_size',
44
        'gc_directory_url'
45
    ];
46
47
    public function manager()
2 ignored issues
show
introduced by
Method \App\Models\TeamCulture::manager() does not have return type hint nor @return annotation for its return value.
Loading history...
Coding Style Documentation introduced by
Missing doc comment for function manager()
Loading history...
48
    {
49
        return $this->belongsTo(\App\Models\Manager::class);
50
    }
51
}
52