src/Entity/PushWebCampaign.php line 13

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