Completed
Push — master ( 0bec88...46c94e )
by David Martínez
02:07
created

Desiratum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 17
rs 10
c 2
b 0
f 0
ccs 0
cts 4
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A timeslots() 0 4 1
1
<?php
2
3
namespace Scool\Timetables\Models;
4
5
use Acacha\Names\Traits\Nameable;
6
use Acacha\Stateful\Traits\StatefulTrait;
7
use Illuminate\Database\Eloquent\Model;
8
9
class Desiratum extends Model
10
{
11
    use Nameable, StatefulTrait;
12
13
    protected $fillable = [
14
        'torn', 'name',
15
    ];
16
17
    //TODO falta la relació completa, falta la classe Timeslot. Traits
18
    /**
19
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
20
     */
21
    public function timeslots()
22
    {
23
        return $this->belongsToMany(App\Timeslot::class);
24
    }
25
}
26