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

WorkExperience::applicant()   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
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...
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...
50
        return $this->belongsToMany(\App\Models\Skill::class);
51
    }
52
}
53