Passed
Push — task/applicant-profile-api ( bae4f4...980451 )
by Yonathan
11:46 queued 03:46
created

ApplicantClassification::classification()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Models;
4
5
use App\Models\BaseModel;
6
7
/**
8
 * Class ApplicationClassification
9
 *
10
 * @property int applicant_id
11
 * @property int classification_id
12
 * @property int level
13
 * @property int order
14
 * @property \Jenssegers\Date\Date $created_at
15
 * @property \Jenssegers\Date\Date $updated_at
16
 *
17
 * @property \App\Models\Applicant $applicant
18
 * @property \App\Models\Classification $classification
19
 */
20
class ApplicantClassification extends BaseModel
21
{
22
    protected $casts = [
23
        'applicant_id' => 'int',
24
        'classification_id' => 'int',
25
        'level' => 'int',
26
        'order' => 'int',
27
    ];
28
29
    protected $fillable = [
30
        'level',
31
        'order',
32
    ];
33
34
    public function applicant() //phpcs:ignore
35
    {
36
        return $this->belongsTo(\App\Models\Applicant::class);
37
    }
38
39
    public function classification() //phpcs:ignore
40
    {
41
        return $this->belongsTo(\App\Models\Classification::class);
42
    }
43
}
44