Invitation   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 4
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 50
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getEmail() 0 4 1
A setEmail() 0 6 1
A __toString() 0 4 1
1
<?php
2
3
namespace Tahoe\Bundle\MultiTenancyBundle\Entity;
4
5
use Tahoe\Bundle\MultiTenancyBundle\Model\InvitationInterface;
6
use Tahoe\Bundle\MultiTenancyBundle\Model\TenantAwareInterface;
7
use Tahoe\Bundle\MultiTenancyBundle\Model\TenantTrait;
8
9
class Invitation implements TenantAwareInterface, InvitationInterface
10
{
11
12
    use TenantTrait;
13
14
    /**
15
     * @var integer
16
     */
17
    protected $id;
18
    /**
19
     * @var string
20
     */
21
    protected $email;
22
23
    /**
24
     * @return int
25
     */
26
    public function getId()
27
    {
28
        return $this->id;
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getEmail()
35
    {
36
        return $this->email;
37
    }
38
39
    /**
40
     * @param string $email
41
     *
42
     * @return $this
43
     */
44
    public function setEmail($email)
45
    {
46
        $this->email = $email;
47
48
        return $this;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function __toString()
55
    {
56
        return $this->getEmail();
57
    }
58
}
59