Passed
Push — master ( 932c5f...e95b38 )
by Ron
01:49
created

Map::buildings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Starpeace\Models\Eloquent\Common;
4
5
use Starpeace\Models\Eloquent\BaseModel;
6
7
class Map extends BaseModel
8
{
9
    protected $table = 'maps';
10
11
    protected $fillable = [ 'map_category_id', 'name', 'display_name', 'map_x', 'map_y', 'location', 'filename' ];
12
13
    protected $dates = [ 'created_at', 'updated_at'];
14
15
    public function category()
16
    {
17
        return $this->hasOne(MapCategory::class, 'id', 'map_category_id');
18
    }
19
20
    public function buildings()
21
    {
22
        //
23
    }
24
}