Passed
Push — feature/job-builder/step-03-ui ( dabf2e...dabf2e )
by Xander
20:05 queued 13s
created

AssessmentPlanNotification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 22
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A job_poster() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
/**
6
 * Class AssessmentPlanNotification
7
 *
8
 * @property int $id
9
 * @property int $job_poster_id
10
 * @property string $type
11
 * @property int $criteria_id
12
 * @property int $criteria_type_id
13
 * @property int $skill_id
14
 * @property int $skill_id_new
15
 * @property int $skill_level_id
16
 * @property int $skill_level_id_new
17
 * @property boolean $acknowledged
18
 * @property \Jenssegers\Date\Date $created_at
19
 * @property \Jenssegers\Date\Date $updated_at
20
 *
21
 * @property \App\Models\JobPoster $job_poster
22
 */
23
class AssessmentPlanNotification extends BaseModel
24
{
25
    /**
26
     * The columns that can be filled with mass-assignment
27
     *
28
     * @var string[]
29
     */
30
    protected $fillable = [
31
        'acknowledged'
32
    ];
33
34
    /**
35
     * How each column should be cast to a variable
36
     */
1 ignored issue
show
Coding Style Documentation introduced by
Missing @var tag in member variable comment
Loading history...
37
    protected $casts = [];
0 ignored issues
show
introduced by
Property \App\Models\AssessmentPlanNotification::$casts does not have @var annotation.
Loading history...
38
39
    /**
40
     * Get the JobPoster relationship
41
     */
1 ignored issue
show
Coding Style Documentation introduced by
Missing @return tag in function comment
Loading history...
42
    public function job_poster()
0 ignored issues
show
Coding Style introduced by
Method name "AssessmentPlanNotification::job_poster" is not in camel caps format
Loading history...
introduced by
Method \App\Models\AssessmentPlanNotification::job_poster() does not have return type hint nor @return annotation for its return value.
Loading history...
43
    {
44
        return $this->belongsTo(\App\Models\JobPoster::class);
45
    }
46
}
47