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

State   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 12
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A country() 0 3 1
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
}