User::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Alpixel\Bundle\CMSBundle\Tests\Functional\Fixture\TestBundle\Entity;
4
5
use Alpixel\Bundle\UserBundle\Entity\User as BaseUser;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity
10
 * @ORM\Table(name="account_user")
11
 */
12
class User extends BaseUser
13
{
14
    /**
15
     * @var int
16
     *
17
     * @ORM\Column(name="user_id", type="integer")
18
     * @ORM\Id
19
     * @ORM\GeneratedValue(strategy="AUTO")
20
     */
21
    protected $id;
22
23
    /**
24
     * Gets the value of id.
25
     *
26
     * @return int
27
     */
28
    public function getId()
29
    {
30
        return $this->id;
31
    }
32
33
    /**
34
     * Sets the value of id.
35
     *
36
     * @param int $id the id
37
     *
38
     * @return self
39
     */
40
    public function setId($id)
41
    {
42
        $this->id = $id;
43
44
        return $this;
45
    }
46
}
47