ApplicantProfileAnswer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 11
dl 0
loc 23
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

2 Methods

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