Passed
Push — feature/screening-plan-v2 ( ebc189...f2744e )
by Tristan
10:49 queued 05:49
created

RatingGuideQuestion::job_poster()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
 */
18
class RatingGuideQuestion extends BaseModel
19
{
20
    /**
21
     * The columns that can be filled with mass-assignment
22
     *
23
     * @var string[]
24
     */
25
    protected $fillable = ['question'];
26
27
    /**
28
     * Get the JobPoster relation.
29
     *
30
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
31
     */
32
    public function job_poster()
0 ignored issues
show
Coding Style introduced by
Method name "RatingGuideQuestion::job_poster" is not in camel caps format
Loading history...
introduced by
Method \App\Models\RatingGuideQuestion::job_poster() does not have return type hint for its return value but it should be possible to add it based on @return annotation "\Illuminate\Database\Eloquent\Relations\BelongsTo".
Loading history...
33
    {
34
        return $this->belongsTo(\App\Models\JobPoster::class);
35
    }
36
37
    /**
38
     * Get the AssessmentType relation.
39
     *
40
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
41
     */
42
    public function assessment_type()
0 ignored issues
show
Coding Style introduced by
Method name "RatingGuideQuestion::assessment_type" is not in camel caps format
Loading history...
introduced by
Method \App\Models\RatingGuideQuestion::assessment_type() does not have return type hint for its return value but it should be possible to add it based on @return annotation "\Illuminate\Database\Eloquent\Relations\BelongsTo".
Loading history...
43
    {
44
        return $this->belongsTo(\App\Models\AssessmentType::class);
45
    }
46
}
47