TimeSlot   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A djForTimeslot() 0 4 1
A showForTimeslot() 0 4 1
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