1 | <?php |
||
12 | class Subscriber |
||
13 | { |
||
14 | /** |
||
15 | * @ORM\Column(type="integer") |
||
16 | * @ORM\Id |
||
17 | * @ORM\GeneratedValue(strategy="AUTO") |
||
18 | */ |
||
19 | protected $id; |
||
20 | |||
21 | /** |
||
22 | * @Assert\Email() |
||
23 | * @ORM\Column(type="string", length=100) |
||
24 | */ |
||
25 | protected $email; |
||
26 | |||
27 | /** |
||
28 | * @ORM\Column(type="boolean") |
||
29 | */ |
||
30 | protected $active; |
||
31 | |||
32 | /** |
||
33 | * @ORM\Column(type="datetime", name="created_at") |
||
34 | */ |
||
35 | protected $createdAt; |
||
36 | |||
37 | /** |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function getId() |
||
44 | |||
45 | /** |
||
46 | * @param mixed $id |
||
47 | * @return Subscriber |
||
48 | */ |
||
49 | public function setId($id) |
||
54 | |||
55 | /** |
||
56 | * @param mixed $createdAt |
||
57 | */ |
||
58 | public function setCreatedAt($createdAt) |
||
62 | |||
63 | /** |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function getCreatedAt() |
||
70 | |||
71 | /** |
||
72 | * @param mixed $email |
||
73 | */ |
||
74 | public function setEmail($email) |
||
78 | |||
79 | /** |
||
80 | * @return mixed |
||
81 | */ |
||
82 | public function getEmail() |
||
86 | |||
87 | /** |
||
88 | * @param mixed $active |
||
89 | * @return Subscriber |
||
90 | */ |
||
91 | public function setActive($active) |
||
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function isActive() |
||
104 | } |