Completed
Pull Request — 2.1 (#259)
by Piotr
02:21
created

Person::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * (c) FSi sp. z o.o. <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace FSi\FixturesBundle\Entity;
11
12
use Doctrine\ORM\Mapping as ORM;
13
use Symfony\Component\Validator\Constraints as Assert;
14
15
/**
16
 * @ORM\Entity
17
 * @ORM\Table(name="person")
18
 */
19
class Person
20
{
21
    /**
22
     * @ORM\Column(type="integer")
23
     * @ORM\Id
24
     * @ORM\GeneratedValue(strategy="AUTO")
25
     */
26
    private $id;
27
28
    /**
29
     * @Assert\NotBlank
30
     * @Assert\Email
31
     * @ORM\Column(length=100)
32
     */
33
    private $email;
34
35
    public function getId()
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * @param string $email
42
     */
43
    public function setEmail($email)
44
    {
45
        $this->email = $email;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getEmail()
52
    {
53
        return $this->email;
54
    }
55
}
56