Passed
Push — release/1.0.17 ( f9f3c1...f9f3c1 )
by Grant
10:46 queued 13s
created

WorkExperience   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 14
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A experienceable() 0 3 1
1
<?php
2
3
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:28 +0000.
6
 */
7
8
namespace App\Models;
9
10
/**
11
 * Class WorkExperience
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 $experienceable_id
20
 * @property string $experienceable_type
21
 *
22
 * @property \Jenssegers\Date\Date $created_at
23
 * @property \Jenssegers\Date\Date $updated_at
24
 *
25
 * @property \App\Models\Applicant|\App\Models\JobApplication $experienceable
26
 */
27
class WorkExperience extends BaseModel
28
{
29
30
    protected $casts = [
1 ignored issue
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
31
        'role' => 'string',
32
        'company' => 'string',
33
        'description' => 'string',
34
        'start_date' => 'date',
35
        'end_date' => 'date',
36
    ];
37
    protected $fillable = [
1 ignored issue
show
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
38
        'role',
39
        'company',
40
        'description',
41
        'start_date',
42
        'end_date'
43
    ];
44
45
    public function experienceable()
2 ignored issues
show
Coding Style Documentation introduced by
Missing doc comment for function experienceable()
Loading history...
introduced by
Method \App\Models\WorkExperience::experienceable() does not have return type hint nor @return annotation for its return value.
Loading history...
46
    {
47
        return $this->morphTo();
48
    }
49
}
50