Passed
Push — feature/application-versions ( 23b8a1 )
by Grant
11:21 queued 03:56
created

JobApplicationVersion   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A job_application() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
/**
6
 * Class JobApplicationVersion
7
 *
8
 * @property int $id
9
 * @property int $version
10
 * @property \Jenssegers\Date\Date $created_at
11
 * @property \Jenssegers\Date\Date $updated_at
12
 *
13
 * @property \App\Models\JobApplication $job_application
14
 */
15
class JobApplicationVersion extends BaseModel
16
{
17
18
    protected $casts = [
19
        'version' => 'int',
20
    ];
21
    protected $fillable = [
22
        'version'
23
    ];
24
25
    public function job_application() //phpcs:ignore
26
    {
27
        return $this->belongsTo(\App\Models\JobApplication::class);
28
    }
29
}
30