Passed
Push — feature/job-status-notificatio... ( 0278a2...e12c98 )
by Chris
09:02 queued 04:34
created

ExperiencePersonal   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 17
c 1
b 0
f 0
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A experienceable() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
use App\Models\BaseModel;
6
7
/**
8
 * Class ExperiencePersonal
9
 *
10
 * @property int $id
11
 * @property string $title
12
 * @property string $description
13
 * @property boolean $is_shareable
14
 * @property boolean $is_active
15
 * @property \Jenssegers\Date\Date $start_date
16
 * @property \Jenssegers\Date\Date $end_date
17
 * @property int $experienceable_id
18
 * @property string $experienceable_type
19
 * @property \Jenssegers\Date\Date $created_at
20
 * @property \Jenssegers\Date\Date $updated_at
21
 *
22
 * @property \App\Models\Applicant|\App\Models\JobApplication $experienceable
23
 */
24
class ExperiencePersonal extends BaseModel
25
{
26
    protected $casts = [
27
        'title' => 'string',
28
        'description' => 'string',
29
        'is_shareable' => 'boolean',
30
        'is_active' => 'boolean',
31
        'start_date' => 'date',
32
        'end_date' => 'date'
33
    ];
34
35
    protected $fillable = [
36
        'title',
37
        'description',
38
        'is_shareable',
39
        'is_active',
40
        'start_date',
41
        'end_date'
42
    ];
43
44
    protected $table = 'experiences_personal';
45
46
    public function experienceable() //phpcs:ignore
47
    {
48
        return $this->morphTo();
49
    }
50
}
51