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

Workflow   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

1 Method

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