OrderStatus   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A orderStatusEmailTemplate() 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 OrderStatus extends BaseModel
8
{
9
    /**
10
     * The database table used by the model.
11
     *
12
     * @var string
13
     */    
14
    protected $table = 'order_status';
15
16
    // Add the 'avatar' attachment to the fillable array so that it's mass-assignable on this model.
17
    protected $fillable = ['title', 'count_as_revenue', 'color', 'order_is_validated', 'order_is_paid', 'order_is_delivered', 'send_email_to_customer', 'attach_invoice_to_email', 'attach_order_to_email', 'order_status_email_template_id', 'send_email_copy_to', 'shop_id', 'modified_by_user_id'];
18
19
    public function orderStatusEmailTemplate()
20
    {
21
        return $this->belongsTo('Hideyo\Ecommerce\Framework\Services\Order\Entity\OrderStatusEmailTemplate');
22
    }
23
}