TimeSlot::djForTimeslot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace WITR;
2
3
use Illuminate\Database\Eloquent\Model;
4
5
class TimeSlot extends Model {
6
7
	protected $table = 'schedule';
8
9
	/**
10
	 * The attributes that are mass assignable.
11
	 *
12
	 * @var array
13
	 */
14
	protected $fillable = ['dj', 'show', 'day', 'hour'];
15
16
	public $timestamps = false;
17
18
	public function djForTimeslot()
19
	{
20
		return $this->belongsTo('WITR\DJ', 'dj', 'id');
21
	}
22
23
	public function showForTimeslot()
24
	{
25
		return $this->belongsTo('WITR\Show', 'show', 'id');
26
	}
27
}
28