Completed
Push — master ( 5e707d...531456 )
by David Martínez
02:08
created

Desiratum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

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
use Prettus\Repository\Contracts\Transformable;
9
use Prettus\Repository\Traits\TransformableTrait;
10
11
class Desiratum extends Model implements Transformable
12
{
13
    use TransformableTrait, Nameable, StatefulTrait;
14
15
    protected $fillable = [
16
        'torn', 'name',
17
    ];
18
19
    //TODO falta la relació completa, falta la classe Timeslot. Traits
20
    /**
21
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
22
     */
23
    public function timeslots()
24
    {
25
        return $this->belongsToMany(App\Timeslot::class);
26
    }
27
28
}
29