Completed
Push — master ( 9355dc...3ceff2 )
by
unknown
03:08
created

TransaksiModel::getCustomer()   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 namespace Bantenprov\Transaksi\Models;
2
3
use Illuminate\Database\Eloquent\Model;
4
use Illuminate\Database\Eloquent\SoftDeletes;
5
6
/**
7
 * The TransaksiModel class.
8
 *
9
 * @package Bantenprov\Transaksi
10
 * @author  bantenprov <[email protected]>
11
 */
12
class TransaksiModel extends Model
13
{
14
    use SoftDeletes;
15
16
    /**
17
    * Table name.
18
    *
19
    * @var string
20
    */
21
    protected $table = 'transaksies';
22
23
    protected $fillable = [
24
        'uuid',
25
        'nomor',
26
        'total',
27
        'denda',
28
        'potongan',
29
        'grandtotal',
30
        'admin_id',
31
        'customer_transaksi_id',
32
        'tarif_id',
33
        'admin_uuid',
34
        'customer_transaksi_uuid',
35
        'tarif_uuid'
36
    ];
37
38
    // public function getitem()
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
39
    // {
40
    //     return $this->hasMany('Item', 'id');
0 ignored issues
show
Unused Code Comprehensibility introduced by
70% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
41
    // }
42
43
    public function getCustomer()
44
    {
45
        return $this->hasOne('Bantenprov\CustomerRetribusi\Models\CustomerRetribusiModel', 'id');
46
    }
47
48
    public function getAdmin()
49
    {
50
        return $this->hasOne('Bantenprov\Admin\Models\AdminModel', 'id');
51
    }
52
}
53