src/Entity/PushWebCampaign.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PushWebCampaignRepository;
  4. use DateTimeInterface;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * @ORM\Entity(repositoryClass=PushWebCampaignRepository::class)
  10. */
  11. class PushWebCampaign
  12. {
  13. const STATUS_ENABLED = 'enabled';
  14. const STATUS_SENT = 'sent';
  15. const STATUS_DISABLED = 'disabled';
  16. /**
  17. * @ORM\Id
  18. * @ORM\GeneratedValue
  19. * @ORM\Column(type="integer")
  20. */
  21. private $id;
  22. /**
  23. * @ORM\Column(type="datetime")
  24. */
  25. private $createdAt;
  26. /**
  27. * @ORM\Column(type="datetime", nullable=true)
  28. */
  29. private $sendAt;
  30. /**
  31. * @ORM\Column(type="boolean")
  32. */
  33. private $isSent = false;
  34. /**
  35. * @ORM\Column(type="string", length=255)
  36. */
  37. private $name;
  38. /**
  39. * @ORM\Column(type="string", length=255)
  40. */
  41. private $title;
  42. /**
  43. * @ORM\Column(type="string", length=255)
  44. */
  45. private $message;
  46. /**
  47. * @ORM\Column(type="string", length=255)
  48. */
  49. private $status;
  50. /**
  51. * @ORM\ManyToOne(targetEntity=ContactList::class, inversedBy="pushWebCampaigns")
  52. */
  53. private $contactList;
  54. public function getId(): ?int
  55. {
  56. return $this->id;
  57. }
  58. public function getCreatedAt(): ?DateTimeInterface
  59. {
  60. return $this->createdAt;
  61. }
  62. public function setCreatedAt(DateTimeInterface $createdAt): self
  63. {
  64. $this->createdAt = $createdAt;
  65. return $this;
  66. }
  67. public function getSendAt(): ?DateTimeInterface
  68. {
  69. return $this->sendAt;
  70. }
  71. public function setSendAt(?DateTimeInterface $sendAt): self
  72. {
  73. $this->sendAt = $sendAt;
  74. return $this;
  75. }
  76. public function isSent(): ?bool
  77. {
  78. return $this->isSent;
  79. }
  80. public function setIsSent(bool $isSent): self
  81. {
  82. $this->isSent = $isSent;
  83. return $this;
  84. }
  85. public function getName(): ?string
  86. {
  87. return $this->name;
  88. }
  89. public function setName(string $name): self
  90. {
  91. $this->name = $name;
  92. return $this;
  93. }
  94. public function getMessage(): ?string
  95. {
  96. return $this->message;
  97. }
  98. public function setMessage(string $message): self
  99. {
  100. $this->message = $message;
  101. return $this;
  102. }
  103. public function getTitle(): ?string
  104. {
  105. return $this->title;
  106. }
  107. public function setTitle(string $title): self
  108. {
  109. $this->title = $title;
  110. return $this;
  111. }
  112. public function getStatus(): ?string
  113. {
  114. return $this->status;
  115. }
  116. public function setStatus(string $status): self
  117. {
  118. $this->status = $status;
  119. return $this;
  120. }
  121. public function getContactList(): ?ContactList
  122. {
  123. return $this->contactList;
  124. }
  125. public function setContactList(?ContactList $contactList): self
  126. {
  127. $this->contactList = $contactList;
  128. return $this;
  129. }
  130. }