JobApplicationAnswer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A job_poster_question() 0 3 1
A job_application() 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 JobApplicationAnswer
12
 *
13
 * @property int $id
14
 * @property int $job_poster_question_id
15
 * @property int $job_application_id
16
 * @property string $answer
17
 * @property \Jenssegers\Date\Date $created_at
18
 * @property \Jenssegers\Date\Date $updated_at
19
 *
20
 * @property \App\Models\JobApplication $job_application
21
 * @property \App\Models\JobPosterQuestion $job_poster_question
22
 */
23
class JobApplicationAnswer extends BaseModel
24
{
25
26
    protected $casts = [
27
        'job_poster_questions_id' => 'int',
28
        'job_application_id' => 'int'
29
    ];
30
    protected $fillable = [
31
        'answer'
32
    ];
33
34
    public function job_application()
35
    {
36
        return $this->belongsTo(\App\Models\JobApplication::class);
37
    }
38
39
    public function job_poster_question()
40
    {
41
        return $this->belongsTo(\App\Models\JobPosterQuestion::class);
42
    }
43
}
44