Passed
Push — feature/screening-plan-redux ( 285239...e0f683 )
by Tristan
08:22
created

RatingGuideAnswer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 27
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A rating_guide_question() 0 3 1
A skill() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
/**
6
 * Class RatingGuideQuestion
7
 *
8
 * @property int $id
9
 * @property int $rating_guide_question_id
10
 * @property int $skill_id
11
 * @property string $expected_answer
12
 * @property \Jenssegers\Date\Date $created_at
13
 * @property \Jenssegers\Date\Date $updated_at
14
 *
15
 * @property \App\Models\RatingGuideQuestion $rating_guide_question
16
 * @property \App\Models\Skill $skill
17
 */
18
class RatingGuideAnswer 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 RatingGuideQuestion relation.
29
     *
30
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
31
     */
32
    public function rating_guide_question(): \Illuminate\Database\Eloquent\Relations\BelongsTo
0 ignored issues
show
Coding Style introduced by
Method name "RatingGuideAnswer::rating_guide_question" is not in camel caps format
Loading history...
33
    {
34
        return $this->belongsTo(\App\Models\RatingGuideQuestion::class);
35
    }
36
37
    /**
38
     * Get the Skill relation.
39
     *
40
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
41
     */
42
    public function skill(): \Illuminate\Database\Eloquent\Relations\BelongsTo
43
    {
44
        return $this->belongsTo(\App\Models\Skill::class);
45
    }
46
}
47