Completed
Push — feature/manager_view_app_profi... ( 5ff349...1f9820 )
by Tristan
06:53
created

getDescriptionAttribute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 2
rs 10
ccs 0
cts 2
cp 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
 */
0 ignored issues
show
Coding Style introduced by
Missing @link tag in file comment
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
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
 */
0 ignored issues
show
Coding Style introduced by
Missing @link tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
27
class ApplicantProfileQuestion extends BaseModel {
0 ignored issues
show
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
28
29
    protected $fillable = [];
30
31
    public function applicant_profile_answers() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function applicant_profile_answers()
Loading history...
Coding Style introduced by
Public method name "ApplicantProfileQuestion::applicant_profile_answers" is not in camel caps format
Loading history...
32
        return $this->hasMany(\App\Models\ApplicantProfileAnswer::class);
33
    }
34
35
    // Accessors
36
37
    public function getQuestionAttribute() {
0 ignored issues
show
Coding Style introduced by
You must use "/**" style comments for a function comment
Loading history...
38
        return Lang::get('common/lookup/applicant_profile_questions')[$this->name]['question'];
39
    }
40
41
    public function getDescriptionAttribute() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getDescriptionAttribute()
Loading history...
42
        return Lang::get('common/lookup/applicant_profile_questions')[$this->name]['description'];
43
    }
44
45
}
46