Passed
Pull Request — dev (#313)
by Tristan
06:51
created

WorkExperience   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 16
dl 0
loc 24
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A applicant() 0 2 1
A skills() 0 2 1
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
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
Coding Style introduced by
Missing @link tag in file comment
Loading history...
7
8
namespace App\Models;
9
10
/**
11
 * Class Degree
12
 *
13
 * @property int $id
14
 * @property string $role
15
 * @property string $company
16
 * @property string $description
17
 * @property \Jenssegers\Date\Date $start_date
18
 * @property \Jenssegers\Date\Date $end_date
19
 * @property int $applicant_id
20
 *
21
 * @property \Jenssegers\Date\Date $created_at
22
 * @property \Jenssegers\Date\Date $updated_at
23
 *
24
 * @property \App\Models\Applicant $applicant
25
 * @property \Illuminate\Database\Eloquent\Collection $skills
26
 */
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...
27
class WorkExperience 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 $casts = [
30
        'role' => 'string',
31
        'company' => 'string',
32
        'description' => 'string',
33
        'start_date' => 'date',
34
        'end_date' => 'date',
35
        'appliant_id' => 'int'
36
    ];
37
    protected $fillable = [
38
        'role',
39
        'company',
40
        'description',
41
        'start_date',
42
        'end_date'
43
    ];
44
45
    public function applicant() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function applicant()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
46
        return $this->belongsTo(\App\Models\Applicant::class);
47
    }
48
49
    public function skills() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function skills()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
50
        return $this->belongsToMany(\App\Models\Skill::class);
51
    }
52
}
53