Order   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A orderItems() 0 4 1
1
<?php
2
3
/**
4
 * Author: Emmanuel Paul Mnzava
5
 * Twitter: @epmnzava
6
 * Github:https://github.com/dbrax/bill-me
7
 * Email: [email protected]
8
 * 
9
 */
10
11
namespace Epmnzava\BillMe\Models;
12
13
use Illuminate\Database\Eloquent\Model;
14
use Epmnzava\BillMe\Models\OrderItem;
15
16
class Order extends Model
17
{
18
    protected $guarded = [];
19
    protected $table="orders";
20
21
    /**
22
     * Get the orderItems for the Order entry.
23
     */
24
    public function orderItems()
25
    {
26
        return $this->hasMany(OrderItem::class,'order_id');
27
    }
28
}
29