src/Entity/CroqinfoAbonne.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CroqinfoAbonneRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=CroqinfoAbonneRepository::class)
  7. */
  8. class CroqinfoAbonne
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=255)
  18. */
  19. private $email;
  20. /**
  21. * @ORM\Column(type="datetime")
  22. */
  23. private $createdDate;
  24. /**
  25. * @ORM\Column(type="boolean", nullable=true)
  26. */
  27. private $isActive;
  28. /**
  29. * @ORM\Column(type="boolean")
  30. */
  31. private $isCustomer;
  32. public function __construct()
  33. {
  34. $this->createdDate = new \DateTime();
  35. }
  36. public function getId(): ?int
  37. {
  38. return $this->id;
  39. }
  40. public function getEmail(): ?string
  41. {
  42. return $this->email;
  43. }
  44. public function setEmail(string $email): self
  45. {
  46. $this->email = $email;
  47. return $this;
  48. }
  49. public function getCreatedDate(): ?\DateTimeInterface
  50. {
  51. return $this->createdDate;
  52. }
  53. public function setCreatedDate(\DateTimeInterface $createdDate): self
  54. {
  55. $this->createdDate = $createdDate;
  56. return $this;
  57. }
  58. public function getIsActive(): ?bool
  59. {
  60. return $this->isActive;
  61. }
  62. public function setIsActive(?bool $isActive): self
  63. {
  64. $this->isActive = $isActive;
  65. return $this;
  66. }
  67. public function getIsCustomer(): ?bool
  68. {
  69. return $this->isCustomer;
  70. }
  71. public function setIsCustomer(bool $isCustomer): self
  72. {
  73. $this->isCustomer = $isCustomer;
  74. return $this;
  75. }
  76. }