DoctrineUserConnection   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 4
c 3
b 0
f 0
lcom 0
cbo 0
dl 0
loc 52
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setPersonId() 0 4 1
A getPersonId() 0 4 1
A setUsername() 0 4 1
A getUsername() 0 4 1
1
<?php
2
3
namespace SkautisBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Entita pro ukladani propojeni symfony uzivatele se Skautis uzivatelem
9
 *
10
 * @ORM\Entity
11
 * @ORM\Table(name="skautis_user_connections")
12
 */
13
class DoctrineUserConnection
14
{
15
16
    /**
17
     * Person ID uzivatele Skautisu
18
     *
19
     * @ORM\Id
20
     * @ORM\Column(type="integer", unique=true, name="skautis_person_id")
21
     * @var int
22
     */
23
    protected $personId;
24
25
    /**
26
     * Username symfony uzivatele ktery je propojen se skautisem
27
     *
28
     * @ORM\Column(type="string", unique=true, name="username")
29
     * @var string
30
     */
31
    protected $username;
32
33
    /**
34
     * @param int $id
35
     */
36
    public function setPersonId($id)
37
    {
38
        $this->personId = $id;
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getPersonId()
45
    {
46
        return $this->personId;
47
    }
48
49
    /**
50
     * @param string $username
51
     */
52
    public function setUsername($username)
53
    {
54
        $this->username = $username;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getUsername()
61
    {
62
        return $this->username;
63
    }
64
}
65