Passed
Push — feature/job-env-culture ( 009e4e )
by Tristan
21:55 queued 13:02
created

WorkEnvironment::workplace_photo_captions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
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 2
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
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:28 +0000.
6
 */
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
 */
31
class WorkEnvironment extends BaseModel {
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'];
1 ignored issue
show
introduced by
Property \App\Models\WorkEnvironment::$translatedAttributes does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
36
    protected $casts = [
1 ignored issue
show
introduced by
Property \App\Models\WorkEnvironment::$casts does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
37
        'telework_allowed_frequency_id' => 'int',
38
        'flexible_hours_frequency_id' => 'int',
39
    ];
40
    protected $fillable = [
1 ignored issue
show
introduced by
Property \App\Models\WorkEnvironment::$fillable does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
41
        'telework_allowed_frequency_id',
42
        'flexible_hours_frequency_id'
43
    ];
44
    protected $with = [
1 ignored issue
show
introduced by
Property \App\Models\WorkEnvironment::$with does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
45
        'telework_allowed_frequency',
46
        'flexible_hours_frequency'
47
    ];
48
49
    public function manager() {
1 ignored issue
show
introduced by
Method \App\Models\WorkEnvironment::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...
50
        return $this->belongsTo(\App\Models\Manager::class);
51
    }
52
53
    public function telework_allowed_frequency() {
1 ignored issue
show
Coding Style introduced by
Method name "WorkEnvironment::telework_allowed_frequency" is not in camel caps format
Loading history...
introduced by
Method \App\Models\WorkEnvironment::telework_allowed_frequency() 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 telework_allowed_frequency()
Loading history...
54
        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
55
    }
56
57
    public function flexible_hours_frequency() {
1 ignored issue
show
Coding Style introduced by
Method name "WorkEnvironment::flexible_hours_frequency" is not in camel caps format
Loading history...
introduced by
Method \App\Models\WorkEnvironment::flexible_hours_frequency() 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 flexible_hours_frequency()
Loading history...
58
        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
59
    }
60
61
    public function workplace_photo_captions() {
1 ignored issue
show
Coding Style introduced by
Method name "WorkEnvironment::workplace_photo_captions" is not in camel caps format
Loading history...
introduced by
Method \App\Models\WorkEnvironment::workplace_photo_captions() 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 workplace_photo_captions()
Loading history...
62
        return $this->hasMany(\App\Models\WorkplacePhotoCaption::class);
63
    }
64
65
    public function work_environment_translations() {
1 ignored issue
show
Coding Style introduced by
Method name "WorkEnvironment::work_environment_translations" is not in camel caps format
Loading history...
introduced by
Method \App\Models\WorkEnvironment::work_environment_translations() 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 work_environment_translations()
Loading history...
66
        return $this->hasMany(\App\Models\WorkEnvironmentTranslation::class);
67
    }
68
69
}
70