Completed
Push — master ( 015a60...9d3bbf )
by Glenn
05:38 queued 03:02
created

Departments   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 6
Bugs 3 Features 2
Metric Value
wmc 2
c 6
b 3
f 2
lcom 0
cbo 1
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A managers() 0 4 1
A users() 0 4 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Departments extends Model
8
{
9
    protected $fillable = ['name', 'manager'];
10
11
    /**
12
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
13
     */
14
    public function managers()
15
    {
16
        return $this->belongsToMany('App\User');
17
    }
18
19
    /**
20
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
21
     */
22
    public function users()
23
    {
24
        return $this->belongsToMany('App\User');
25
    }
26
}
27