Completed
Branch master (384cd7)
by Nil
04:48
created

Orders   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 39
rs 10
1
<?php
2
3
namespace NilPortugues\Tests\App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Orders extends Model
8
{
9
    public $timestamps = false;
10
    public $incrementing = true;
11
    protected $table = 'orders';
12
    protected $primaryKey = 'id';
13
    /**
14
     * @var array
15
     */
16
    protected $fillable = [
17
        'employee_id',
18
        'customer_id',
19
        'order_date',
20
        'shipped_date',
21
        'shipper_id',
22
        'ship_name',
23
        'ship_address',
24
        'ship_city',
25
        'ship_state_province',
26
        'ship_zip_postal_code',
27
        'ship_country_region',
28
        'shipping_fee',
29
        'taxes',
30
        'payment_type',
31
        'paid_date',
32
        'notes',
33
        'tax_rate',
34
        'tax_status_id',
35
        'status_id',
36
    ];
37
38
    /**
39
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
40
     */
41
    public function employee()
42
    {
43
        return $this->belongsTo(Employees::class, 'employee_id');
44
    }
45
}
46