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

Desiratum::timeslots()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
ccs 0
cts 4
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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