Completed
Push — master ( 533f80...ba63a0 )
by Ricardo
04:00
created

Stage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A stageStep() 0 4 1
A workflows() 0 4 1
1
<?php
2
3
namespace Fabrica\Models\Code;
4
5
use Pedreiro\Models\Base;
6
7
class Stage extends Base
8
{
9
    protected $organizationPerspective = false;
10
11
    protected $table = 'code_stages';
12
13
    /**
14
     * The attributes that are mass assignable.
15
     *
16
     * @var array
17
     */
18
    protected $fillable = [
19
        'name',
20
        'stage_step_id'
21
    ];
22
23
    public function stageStep()
24
    {
25
        return $this->belongsTo('Fabrica\Models\Workflow\StageStep', 'stage_step_id', 'id');
26
    }
27
28
    public function workflows()
29
    {
30
        return $this->hasMany('Fabrica\Models\Workflow\Workflow');
31
    }
32
}
33