Test Failed
Push — master ( b6687a...d5e75a )
by Julien
06:32
created

FighterGroupTeam::team()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Xoco70\LaravelTournaments\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
}