OrderPaymentLog   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A order() 0 3 1
1
<?php 
2
3
namespace Hideyo\Ecommerce\Framework\Services\Order\Entity;
4
5
use Hideyo\Ecommerce\Framework\Services\BaseModel;
6
7
class OrderPaymentLog extends BaseModel
8
{
9
    protected $table = 'order_payment_log';
10
11
    // Add the 'avatar' attachment to the fillable array so that it's mass-assignable on this model.
12
    protected $fillable = ['order_id', 'type', 'log'];
13
14
    public function order()
15
    {
16
        return $this->belongsTo('Hideyo\Ecommerce\Framework\Models\Order');
17
    }
18
}