OrderItem::Order()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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\Order;
15
16
17
class OrderItem extends Model
18
{
19
    protected $guarded = [];
20
    protected $table="order_items";
21
22
   /**
23
     * Get the order that owns the orderItem.
24
     */
25
    public function Order()
26
    {
27
        return $this->belongsTo(Order::class,'order_id');
28
    }
29
30
}
31