Passed
Push — feature/closed_apply_ui ( 148195...2419c6 )
by Tristan
09:14
created

WorkEnvironment::telework_allowed_frequency()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:28 +0000.
6
 */
0 ignored issues
show
Coding Style introduced by
Missing @link tag in file comment
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
7
8
namespace App\Models;
9
use App\Models\Lookup\Frequency;
10
use Prophecy\Prediction\CallTimesPrediction;
11
12
/**
13
 * Class WorkEnvironment
14
 *
15
 * @property int $id
16
 * @property int $manager_id
17
 * @property int $telework_allowed_frequency_id
18
 * @property int $flexible_hours_frequency_id
19
 * @property \Jenssegers\Date\Date $created_at
20
 * @property \Jenssegers\Date\Date $updated_at
21
 *
22
 * @property \App\Models\Manager $manager
23
 * @property \App\Models\Lookup\Frequency $telework_allowed_frequency
24
 * @property \App\Models\Lookup\Frequency $flexible_hours_frequency
25
 * @property \Illuminate\Database\Eloquent\Collection $workplace_photo_captions
26
 * @property \Illuminate\Database\Eloquent\Collection $work_environment_translations
27
 *
28
 * Localized Properties:
29
 * @property string $things_to_know
30
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
31
class WorkEnvironment extends BaseModel {
0 ignored issues
show
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
32
33
    use \Dimsav\Translatable\Translatable;
0 ignored issues
show
introduced by
The trait Dimsav\Translatable\Translatable requires some properties which are not provided by App\Models\WorkEnvironment: $translations, $useTranslationFallback, $translationModel, $localeKey, $translationForeignKey
Loading history...
34
35
    public $translatedAttributes = ['things_to_know'];
36
    protected $casts = [
37
        'telework_allowed_frequency_id' => 'int',
38
        'flexible_hours_frequency_id' => 'int',
39
    ];
40
    protected $fillable = [
41
        'telework_allowed_frequency_id',
42
        'flexible_hours_frequency_id'
43
    ];
44
    protected $with = [
45
        'telework_allowed_frequency',
46
        'flexible_hours_frequency'
47
    ];
48
49
    public function manager() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function manager()
Loading history...
50
        return $this->belongsTo(\App\Models\Manager::class);
51
    }
52
53 6
    public function telework_allowed_frequency() {
0 ignored issues
show
Coding Style introduced by
Public method name "WorkEnvironment::telework_allowed_frequency" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function telework_allowed_frequency()
Loading history...
54 6
        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
55
    }
56
57 6
    public function flexible_hours_frequency() {
0 ignored issues
show
Coding Style introduced by
Public method name "WorkEnvironment::flexible_hours_frequency" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function flexible_hours_frequency()
Loading history...
58 6
        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
59
    }
60
61 6
    public function workplace_photo_captions() {
0 ignored issues
show
Coding Style introduced by
Public method name "WorkEnvironment::workplace_photo_captions" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function workplace_photo_captions()
Loading history...
62 6
        return $this->hasMany(\App\Models\WorkplacePhotoCaption::class);
63
    }
64
65
    public function work_environment_translations() {
0 ignored issues
show
Coding Style introduced by
Public method name "WorkEnvironment::work_environment_translations" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function work_environment_translations()
Loading history...
66
        return $this->hasMany(\App\Models\WorkEnvironmentTranslation::class);
67
    }
68
69
}
70