ApplicantProfileAnswer::applicant()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:27 +0000.
6
 */
7
8
namespace App\Models;
9
10
/**
11
 * Class ApplicantProfileAnswer
12
 *
13
 * @property int $id
14
 * @property int $applicant_id
15
 * @property int $applicant_profile_question_id
16
 * @property string $answer
17
 * @property \Jenssegers\Date\Date $created_at
18
 * @property \Jenssegers\Date\Date $updated_at
19
 *
20
 * @property \App\Models\Applicant $applicant
21
 * @property \App\Models\Lookup\ApplicantProfileQuestion $applicant_profile_question
22
 */
23
class ApplicantProfileAnswer extends BaseModel
24
{
25
26
    protected $casts = [
27
        'applicant_id' => 'int',
28
        'applicant_profile_question_id' => 'int'
29
    ];
30
    protected $fillable = [
31
        'applicant_profile_question_id',
32
        'answer'
33
    ];
34
    protected $with = [
35
        'applicant_profile_question'
36
    ];
37
38
    public function applicant()
39
    {
40
        return $this->belongsTo(\App\Models\Applicant::class);
41
    }
42
43
    public function applicant_profile_question()
44
    {
45
        return $this->belongsTo(\App\Models\Lookup\ApplicantProfileQuestion::class);
46
    }
47
}
48