DoctrineUserConnection::getUsername()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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