Passed
Pull Request — dev (#313)
by Tristan
06:51
created

CourseStatus::courses()   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
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Models\Lookup;
4
5
use App\Models\BaseModel;
6
7
/**
8
 * Class CourseStatus
9
 *
10
 * @property int $id
11
 * @property string $name
12
 * @property \Jenssegers\Date\Date $created_at
13
 * @property \Jenssegers\Date\Date $updated_at
14
 *
15
 * @property \Illuminate\Database\Eloquent\Collection $courses
16
 */
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...
17
class CourseStatus extends BaseModel
18
{
19
    protected $table = 'course_status';
20
    protected $fillable = [];
21
22
    public function courses() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function courses()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
23
        return $this->hasMany(\App\Models\Course::class);
24
    }
25
}
26