Completed
Push — master ( 79dc99...137869 )
by
unknown
02:37 queued 10s
created

MasterTarifModel::getUserUpdated()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Bantenprov\MasterTarif\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\SoftDeletes;
7
use Kalnoy\Nestedset\NodeTrait;
8
9
class MasterTarifModel extends Model 
10
{
11
    use NodeTrait;
12
13
    protected $table = 'master_tarifs';
14
    public $timestamps = true;
15
16
    use SoftDeletes;
17
18
    protected $dates = ['deleted_at'];
19
20
    protected $fillable = array(
21
        'id',
22
        'uuid',
23
        'nama',
24
        'dasar_hukum',
25
        'status',
26
        'daftar_retribusi_id',
27
        'daftar_retribusi_uuid',
28
        'user_id',
29
        'user_update',
30
    );
31
32
    public function getDaftarRetribusi()
33
    {
34
        return $this->belongsTo('Bantenprov\DaftarRetribusi\Models\DaftarRetribusiModel', 'daftar_retribusi_id');
35
    }
36
37
    public function getUserCreated()
38
    {
39
        return $this->belongsTo('App\User','user_id');
40
    }
41
42
    public function getUserUpdated()
43
    {
44
        return $this->belongsTo('App\User','user_update');
45
    }
46
47
}