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

TransaksiModel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomer() 0 4 1
A getAdmin() 0 4 1
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