ApplicantClassification::applicant()   A
last analyzed

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
use App\Models\BaseModel;
6
7
/**
8
 * Class ApplicationClassification
9
 *
10
 * @property int $id
11
 * @property int applicant_id
12
 * @property int classification_id
13
 * @property int level
14
 * @property int order
15
 * @property \Jenssegers\Date\Date $created_at
16
 * @property \Jenssegers\Date\Date $updated_at
17
 *
18
 * @property \App\Models\Applicant $applicant
19
 * @property \App\Models\Classification $classification
20
 */
21
class ApplicantClassification extends BaseModel
22
{
23
    protected $casts = [
24
        'applicant_id' => 'int',
25
        'classification_id' => 'int',
26
        'level' => 'int',
27
        'order' => 'int',
28
    ];
29
30
    protected $fillable = [
31
        'level',
32
        'order',
33
    ];
34
35
    public function applicant() //phpcs:ignore
36
    {
37
        return $this->belongsTo(\App\Models\Applicant::class);
38
    }
39
40
    public function classification() //phpcs:ignore
41
    {
42
        return $this->belongsTo(\App\Models\Classification::class);
43
    }
44
}
45