Passed
Push — develop ( a18085...de8258 )
by Francisco
14:47
created

Shift   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A course() 0 3 1
1
<?php
2
3
namespace App\Judite\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Shift extends Model
8
{
9
    /**
10
     * The attributes that are mass assignable.
11
     *
12
     * @var array
13
     */
14
    protected $fillable = ['tag'];
15
16
    /**
17
     * Get course of this shift.
18
     *
19
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
20
     */
21
    public function course()
22
    {
23
        return $this->belongsTo(Course::class);
24
    }
25
}
26