Completed
Push — dev ( c3eba7...760621 )
by Tristan
09:29 queued 02:32
created

Criteria::job_poster()   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: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;
9
10
/**
11
 * Class Criteria
12
 *
13
 * @property int $id
14
 * @property int $criteria_type_id
15
 * @property int $job_poster_id
16
 * @property int $skill_id
17
 * @property int $skill_level_id
18
 * @property \Jenssegers\Date\Date $created_at
19
 * @property \Jenssegers\Date\Date $updated_at
20
 *
21
 * @property \App\Models\Lookup\CriteriaType $criteria_type
22
 * @property \App\Models\JobPoster $job_poster
23
 * @property \App\Models\Skill $skill
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 Criteria 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 $table = 'criteria';
29
    protected $casts = [
30
        'criteria_type_id' => 'int',
31
        'job_poster_id' => 'int',
32
        'skill_id' => 'int',
33
        'skill_level_id' => 'int'
34
    ];
35
    protected $fillable = [
36
        'criteria_type_id',
37
        'skill_id',
38
        'skill_level_id',
39
    ];
40
    protected $with = [
41
        'criteria_type',
42
        'skill',
43
        'skill_level'
44
    ];
45
46
    public function criteria_type() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function criteria_type()
Loading history...
Coding Style introduced by
Public method name "Criteria::criteria_type" is not in camel caps format
Loading history...
47
        return $this->belongsTo(\App\Models\Lookup\CriteriaType::class);
48
    }
49
50
    public function job_poster() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function job_poster()
Loading history...
Coding Style introduced by
Public method name "Criteria::job_poster" is not in camel caps format
Loading history...
51
        return $this->belongsTo(\App\Models\JobPoster::class);
52
    }
53
54
    public function skill() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function skill()
Loading history...
55
        return $this->belongsTo(\App\Models\Skill::class);
56
    }
57
58
    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 "Criteria::skill_level" is not in camel caps format
Loading history...
59
        return $this->belongsTo(\App\Models\Lookup\SkillLevel::class);
60
    }
61
62
}
63