Completed
Push — master ( f606cd...f6df63 )
by
unknown
03:49 queued 02:25
created

State   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A workflow() 0 4 1
1
<?php
2
3
namespace Bantenprov\VueWorkflow\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\SoftDeletes;
7
use Emadadly\LaravelUuid\Uuids;
8
9
class State extends Model
10
{
11
    use SoftDeletes;
12
    use Uuids;
13
14
    public $table = 'workflow_state';
15
16
    public $fillable = ['workflow_id','name', 'label', 'description', 'status'];
17
18
    public function workflow()
19
    {
20
        return $this->belongsTo('Bantenprov\VueWorkflow\Models\Workflow','workflow_id');
21
    }        
22
}
23