Passed
Push — feature/screening-plan-redux ( 8fda69...6fea7a )
by Tristan
17:04 queued 10:44
created

RatingGuideQuestion   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 37
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A rating_guide_answers() 0 3 1
A job_poster() 0 3 1
A assessment_type() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
/**
6
 * Class RatingGuideQuestion
7
 *
8
 * @property int $id
9
 * @property int $job_poster_id
10
 * @property int $assessment_type_id
11
 * @property string $question
12
 * @property \Jenssegers\Date\Date $created_at
13
 * @property \Jenssegers\Date\Date $updated_at
14
 *
15
 * @property \App\Models\JobPoster $job_poster
16
 * @property \App\Models\Lookup\AssessmentType $assessment_type
17
 * @property \Illuminate\Database\Eloquent\Collection $rating_guide_answers
18
 */
19
class RatingGuideQuestion extends BaseModel
20
{
21
    /**
22
     * The columns that can be filled with mass-assignment
23
     *
24
     * @var string[]
25
     */
26
    protected $fillable = ['question'];
27
28
    /**
29
     * Get the JobPoster relation.
30
     *
31
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
32
     */
33
    public function job_poster(): \Illuminate\Database\Eloquent\Relations\BelongsTo
0 ignored issues
show
Coding Style introduced by
Method name "RatingGuideQuestion::job_poster" is not in camel caps format
Loading history...
34
    {
35
        return $this->belongsTo(\App\Models\JobPoster::class);
36
    }
37
38
    /**
39
     * Get the AssessmentType relation.
40
     *
41
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
42
     */
43
    public function assessment_type(): \Illuminate\Database\Eloquent\Relations\BelongsTo
0 ignored issues
show
Coding Style introduced by
Method name "RatingGuideQuestion::assessment_type" is not in camel caps format
Loading history...
44
    {
45
        return $this->belongsTo(\App\Models\AssessmentType::class);
46
    }
47
48
    /**
49
     * Get the RatingGuideAnswers relation.
50
     *
51
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
52
     */
53
    public function rating_guide_answers(): \Illuminate\Database\Eloquent\Relations\HasMany
0 ignored issues
show
Coding Style introduced by
Method name "RatingGuideQuestion::rating_guide_answers" is not in camel caps format
Loading history...
54
    {
55
        return $this->hasMany(\App\Models\RatingGuideAnswer::class);
56
    }
57
}
58