Completed
Pull Request — dev (#317)
by Tristan
06:21
created

SkillDeclaration::job_application()   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
dl 0
loc 2
ccs 0
cts 2
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:28 +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;
9
10
/**
11
 * Class SkillDeclaration
12
 *
13
 * @property int $id
14
 * @property int $skill_id
15
 * @property int $skill_status_id
16
 * @property int $skill_level_id
17
 * @property int $applicant_id
18
 * @property string $description
19
 * @property \Jenssegers\Date\Date $created_at
20
 * @property \Jenssegers\Date\Date $updated_at
21
 *
22
 * @property \App\Models\Skill $skill
23
 * @property \App\Models\Lookup\SkillStatus $skill_status
24
 * @property \App\Models\Lookup\SkillLevel $skill_level
25
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
26
class SkillDeclaration 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...
27
28
    protected $casts = [
29
        'skill_id' => 'int',
30
        'skill_status_id' => 'int',
31
        'skill_level_id' => 'int',
32
        'applicant_id' => 'int',
33
        'description' => 'string'
34
    ];
35
    protected $fillable = [
36
        'skill_level_id',
37
        'description',
38
    ];
39
40
    public function skill() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function skill()
Loading history...
41
        return $this->belongsTo(\App\Models\Skill::class);
42
    }
43
44
    public function skill_status() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function skill_status()
Loading history...
Coding Style introduced by
Public method name "SkillDeclaration::skill_status" is not in camel caps format
Loading history...
45
        return $this->belongsTo(\App\Models\Lookup\SkillStatus::class);
46
    }
47
48
    public function skill_level() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function skill_level()
Loading history...
Coding Style introduced by
Public method name "SkillDeclaration::skill_level" is not in camel caps format
Loading history...
49
        return $this->belongsTo(\App\Models\Lookup\SkillLevel::class);
50
    }
51
52
}
53