Completed
Push — master ( 8208b7...62a982 )
by
unknown
10s
created

CustomerRetribusi::getCustomer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Bantenprov\RetribusiPelayananKesehatan\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\SoftDeletes;
7
8
class CustomerRetribusi extends Model 
9
{
10
11
    protected $table = 'customer_retribusies';
12
    public $timestamps = true;
13
14
    use SoftDeletes;
15
16
    protected $dates = ['deleted_at'];
17
    protected $fillable = array('customers_id', 'daftar_retribusi_id');
18
19
    public function getTransaksi()
20
    {
21
        return $this->hasMany('Transaksi', 'id');
22
    }
23
24
    public function getDaftarRetribusi()
25
    {
26
        return $this->hasOne('DaftarRetribusi', 'daftar_retribusi_id');
27
    }
28
29
    public function getCustomer()
30
    {
31
        return $this->hasOne('Customer', 'customer_id');
32
    }
33
34
}