Completed
Push — master ( da79e9...169abe )
by David Martínez
02:19
created

Day   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
1
<?php
2
3
namespace Scool\Timetables\Models;
4
5
use Acacha\Names\Traits\Nameable;
6
use Illuminate\Database\Eloquent\Model;
7
8
/**
9
 * Class Day.
10
 *
11
 * @package Scool\Timetables\Models
12
 */
13
class Day extends Model
14
{
15
   // use Nameable;
16
17
    /**
18
     * The attributes that are mass assignable.
19
     *
20
     * @var array
21
     */
22
    protected $fillable = ['name','code','lective'];
23
24
    /**
25
     * Convert the model to its string representation.
26
     *
27
     * @return string
28
     */
29
    public function __toString()
30
    {
31
        return "PROVA";
32
    }
33
34
}