UserInvitedToTeam::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Mpociot\Teamwork\Events;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Queue\SerializesModels;
7
8
class UserInvitedToTeam
9
{
10
    use SerializesModels;
11
12
    /**
13
     * @type Model
14
     */
15
    protected $invite;
16
17
    public function __construct($invite)
18
    {
19
        $this->invite = $invite;
20
    }
21
22
    /**
23
     * @return Model
24
     */
25
    public function getInvite()
26
    {
27
        return $this->invite;
28
    }
29
30
    /**
31
     * @return int
32
     */
33
    public function getTeamId()
34
    {
35
        return $this->invite->team_id;
36
    }
37
}
38