ScheduleStatus   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 30
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php namespace H4ad\Scheduler\Models;
2
3
/**
4
 * Esse arquivo faz parte do Scheduler,
5
 * uma biblioteca para auxiliar com agendamentos.
6
 *
7
 * @license MIT
8
 * @package H4ad\Scheduler
9
 */
10
11
use Illuminate\Support\Facades\Config;
12
use Illuminate\Database\Eloquent\Model;
13
use Illuminate\Database\Eloquent\SoftDeletes;
14
15
class ScheduleStatus extends Model
16
{
17
    use SoftDeletes;
18
19
	/**
20
     * Os atributos que podem ser atribuíveis em massa.
21
     *
22
     * @var array
23
     */
24
    protected $fillable = [
25
    	'name', 'description'
26
    ];
27
28
    /**
29
     * Os atributos que devem ser transformados para data.
30
     *
31
     * @var array
32
     */
33
    protected $dates = [
34
    	'deleted_at'
35
    ];
36
37
    /**
38
     * Construtor para inicilizar a váriavel table.
39
     */
40
    public function __construct(array $attributes = [])
41
    {
42
        parent::__construct($attributes);
43
44
        $this->table = Config::get('scheduler.schedule_status_table');
45
    }
46
}