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

AssessmentPlanNotification::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 AssessmentPlanNotification
7
 *
8
 * @property int $id
9
 * @property int $job_poster_id
10
 * @property array $notification
11
 * @property \Jenssegers\Date\Date $created_at
12
 * @property \Jenssegers\Date\Date $updated_at
13
 *
14
 * @property \App\Models\JobPoster $job_poster
15
 */
16
class AssessmentPlanNotification extends BaseModel
17
{
18
    /**
19
     * The columns that can be filled with mass-assignment
20
     *
21
     * @var string[]
22
     */
23
    protected $fillable = ['notification'];
24
25
    /**
26
     * How each column should be cast to a variable
27
     */
1 ignored issue
show
Coding Style Documentation introduced by
Missing @var tag in member variable comment
Loading history...
28
    protected $casts = [
0 ignored issues
show
introduced by
Property \App\Models\AssessmentPlanNotification::$casts does not have @var annotation.
Loading history...
29
        'job_poster_id' => 'int',
30
        'notification' => 'array'
31
    ];
32
33
    /**
34
     * Get the JobPoster relationship
35
     */
1 ignored issue
show
Coding Style Documentation introduced by
Missing @return tag in function comment
Loading history...
36
    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...
37
    {
38
        return $this->belongsTo(\App\Models\JobPoster::class);
39
    }
40
}
41