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

Stage::stageStep()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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