1 | <?php |
||
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() |
||
39 | |||
40 | /** |
||
41 | * @param string $email |
||
42 | */ |
||
43 | public function setEmail($email) |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getEmail() |
||
55 | } |
||
56 |