Passed
Push — master ( 63bf16...f45f58 )
by Julien
21:40
created

FighterGroupTeam::group()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Xoco70\KendoTournaments\Models;
4
5
6
use Illuminate\Database\Eloquent\Model;
7
8
class FighterGroupTeam extends Model
9
{
10
    protected $table = 'fighters_group_team';
11
    public $timestamps = true;
12
13
14
    public function group(){
15
        return $this->belongsTo(FightersGroup::class);
16
    }
17
18
    public function team(){
19
        return $this->belongsTo(Team::class);
20
    }
21
}