Passed
Push — task/application-profile-react... ( 95a834...f06e77 )
by Yonathan
08:39
created

ApplicantClassification   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 11
dl 0
loc 22
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A applicant() 0 3 1
A classification() 0 3 1
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