UserLeftTeam   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getUser() 0 4 1
A getTeamId() 0 4 1
1
<?php
2
3
namespace Mpociot\Teamwork\Events;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Queue\SerializesModels;
7
8
class UserLeftTeam
9
{
10
    use SerializesModels;
11
12
    /**
13
     * @type Model
14
     */
15
    protected $user;
16
17
    /**
18
     * @type int
19
     */
20
    protected $team_id;
21
22
    public function __construct($user, $team_id)
23
    {
24
        $this->user = $user;
25
        $this->team_id = $team_id;
26
    }
27
28
    /**
29
     * @return Model
30
     */
31
    public function getUser()
32
    {
33
        return $this->user;
34
    }
35
36
    /**
37
     * @return int
38
     */
39
    public function getTeamId()
40
    {
41
        return $this->team_id;
42
    }
43
}
44