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

Person   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setEmail() 0 4 1
A getEmail() 0 4 1
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