UserInvitedToTeam   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getInvite() 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 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