LotDeliveryPayment   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A lot() 0 4 1
1
<?php
2
3
namespace App;
4
5
use App\Traits\ActivateableTrait;
6
use Keyhunter\Administrator\Repository;
7
8
class LotDeliveryPayment extends Repository
9
{
10
    use ActivateableTrait;
11
12
    /**
13
     * @var string
14
     */
15
    protected $table = 'lot_delivery_payment';
16
17
    /**
18
     * @var array
19
     */
20
    public $timestamps = false;
21
    protected $fillable = ['lot_id', 'method_id', 'method_type'];
22
23
    public function lot()
24
    {
25
        return $this->hasMany(Lot::class, 'lot_id', 'id');
26
    }
27
}