Completed
Pull Request — master (#7)
by
unknown
01:45
created

SectorEgovernment   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 4 1
1
<?php
2
3
namespace Bantenprov\SectorEgovernment\Models\Bantenprov\SectorEgovernment;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\SoftDeletes;
7
8
class SectorEgovernment extends Model
9
{
10
    use SoftDeletes;
11
12
    public $timestamps = true;
13
14
    protected $table = 'sector_egovernments';
15
    protected $dates = [
16
        'deleted_at'
17
    ];
18
    protected $fillable = [
19
        'label',
20
        'description',
21
        'user_id',
22
        'link',
23
    ];
24
    public function user()
25
    {
26
        return $this->belongsTo('App\User','user_id');
27
    }
28
}
29