getDescriptionAttribute()   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 0
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\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