UserJoinedTeam::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Mpociot\Teamwork\Events;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Queue\SerializesModels;
7
8
class UserJoinedTeam
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