| 1 | <?php |
||
| 15 | class Subscriber |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @ORM\Column(type="integer") |
||
| 19 | * @ORM\Id |
||
| 20 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 21 | */ |
||
| 22 | protected $id; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @Assert\Email() |
||
| 26 | * @ORM\Column(type="string", length=100) |
||
| 27 | */ |
||
| 28 | protected $email; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @ORM\Column(type="boolean") |
||
| 32 | */ |
||
| 33 | protected $active = false; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @ORM\Column(type="datetime", name="created_at") |
||
| 37 | */ |
||
| 38 | protected $createdAt; |
||
| 39 | |||
| 40 | public function getId(): ?int |
||
| 44 | |||
| 45 | public function setCreatedAt(?DateTimeInterface $createdAt): void |
||
| 49 | |||
| 50 | public function getCreatedAt(): ?DateTimeInterface |
||
| 54 | |||
| 55 | public function setEmail(?string $email): void |
||
| 59 | |||
| 60 | public function getEmail(): ?string |
||
| 64 | |||
| 65 | public function setActive(bool $active): void |
||
| 69 | |||
| 70 | public function isActive(): bool |
||
| 74 | } |
||
| 75 |