AssociationUser   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A association() 0 2 1
A user() 0 2 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class AssociationUser extends Model
8
{
9
10
    protected $fillable = array('user_id', 'association_id');
11
12
    public function association() {
13
        return $this->hasOne('App\Association');
14
    }
15
16
    public function user() {
17
        return $this->hasOne('App\User');
18
    }
19
20
}
21