Completed
Pull Request — dev (#314)
by Tristan
06:49
created

WorkExperience   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 15
dl 0
loc 20
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A applicant() 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
 */
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 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...
27
28
    protected $casts = [
29
        'role' => 'string',
30
        'company' => 'string',
31
        'description' => 'string',
32
        'start_date' => 'date',
33
        'end_date' => 'date',
34
        'appliant_id' => 'int'
35
    ];
36
    protected $fillable = [
37
        'role',
38
        'company',
39
        'description',
40
        'start_date',
41
        'end_date'
42
    ];
43
44
    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...
45
        return $this->belongsTo(\App\Models\Applicant::class);
46
    }
47
}
48