| 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() |
||
| 41 | { |
||
| 42 | return $this->id; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param mixed $id |
||
| 47 | * @return Subscriber |
||
| 48 | */ |
||
| 49 | public function setId($id) |
||
| 50 | { |
||
| 51 | $this->id = $id; |
||
| 52 | return $this; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param mixed $createdAt |
||
| 57 | */ |
||
| 58 | public function setCreatedAt($createdAt) |
||
| 59 | { |
||
| 60 | $this->createdAt = $createdAt; |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return mixed |
||
| 65 | */ |
||
| 66 | public function getCreatedAt() |
||
| 67 | { |
||
| 68 | return $this->createdAt; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param mixed $email |
||
| 73 | */ |
||
| 74 | public function setEmail($email) |
||
| 75 | { |
||
| 76 | $this->email = $email; |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return mixed |
||
| 81 | */ |
||
| 82 | public function getEmail() |
||
| 83 | { |
||
| 84 | return $this->email; |
||
| 85 | } |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param mixed $active |
||
| 89 | * @return Subscriber |
||
| 90 | */ |
||
| 91 | public function setActive($active) |
||
| 92 | { |
||
| 93 | $this->active = (boolean) $active; |
||
| 94 | return $this; |
||
| 95 | } |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @return bool |
||
| 99 | */ |
||
| 100 | public function isActive() |
||
| 101 | { |
||
| 102 | return $this->active; |
||
| 103 | } |
||
| 104 | } |