Completed
Pull Request — master (#107)
by Glenn
12:00 queued 06:04
created

DepartmentMembers   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 29
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A members() 0 4 1
A teams() 0 4 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * @property mixed departmentid
9
 * @property mixed userid
10
 */
11
class DepartmentMembers extends Model
12
{
13
    /**
14
     * The database table used by the model.
15
     *
16
     * @var string
17
     */
18
    protected $table = 'department_members';
19
    
20
    /**
21
     * members relation.
22
     *
23
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
24
     */
25
    public function members()
26
    {
27
        return $this->belongsToMany('App\DepartmentMembers');
28
    }
29
30
    /**
31
     * teams relation.
32
     *
33
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
34
     */
35
    public function teams()
36
    {
37
        return $this->belongsToMany('App\Teams');
38
    }
39
}
40