Passed
Push — master ( 4a884d...c9d1fc )
by Jeff
12:14
created

State::country()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Shop\States;
4
5
use App\Shop\Countries\Country;
6
use Illuminate\Database\Eloquent\Model;
7
8
class State extends Model
9
{
10
    public $fillable = [
11
        'state',
12
        'state_code'
13
    ];
14
15
    public $timestamps = false;
16
17
    public function country()
18
    {
19
        return $this->belongsTo(Country::class);
20
    }
21
}