ApplicantProfileQuestion   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 19
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuestionAttribute() 0 3 1
A applicant_profile_answers() 0 3 1
A getDescriptionAttribute() 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\Lookup;
9
10
use App\Models\BaseModel;
11
use Illuminate\Support\Facades\Lang;
12
13
/**
14
 * Class ApplicantProfileQuestion
15
 *
16
 * @property int $id
17
 * @property string $name
18
 * @property \Jenssegers\Date\Date $created_at
19
 * @property \Jenssegers\Date\Date $updated_at
20
 *
21
 * @property \Illuminate\Database\Eloquent\Collection $applicant_profile_answers
22
 *
23
 * Accessors:
24
 * @property string $question
25
 * @property string $description
26
 */
27
class ApplicantProfileQuestion extends BaseModel
28
{
29
30
    protected $fillable = [];
31
32
    public function applicant_profile_answers()
33
    {
34
        return $this->hasMany(\App\Models\ApplicantProfileAnswer::class);
35
    }
36
37
    // Accessors
38
    public function getQuestionAttribute()
39
    {
40
        return Lang::get('common/lookup/applicant_profile_questions')[$this->name]['question'];
41
    }
42
43
    public function getDescriptionAttribute()
44
    {
45
        return Lang::get('common/lookup/applicant_profile_questions')[$this->name]['description'];
46
    }
47
}
48