<?phpnamespace App\Entity;use App\Repository\PushWebCampaignRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PushWebCampaignRepository::class) */class PushWebCampaign{ const STATUS_ENABLED = 'enabled'; const STATUS_SENT = 'sent'; const STATUS_DISABLED = 'disabled'; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $sendAt; /** * @ORM\Column(type="boolean") */ private $isSent = false; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="string", length=255) */ private $message; /** * @ORM\Column(type="string", length=255) */ private $status; /** * @ORM\ManyToOne(targetEntity=ContactList::class, inversedBy="pushWebCampaigns") */ private $contactList; public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getSendAt(): ?\DateTimeInterface { return $this->sendAt; } public function setSendAt(?\DateTimeInterface $sendAt): self { $this->sendAt = $sendAt; return $this; } public function isSent(): ?bool { return $this->isSent; } public function setIsSent(bool $isSent): self { $this->isSent = $isSent; return $this; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(string $message): self { $this->message = $message; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getStatus(): ?string { return $this->status; } public function setStatus(string $status): self { $this->status = $status; return $this; } public function getContactList(): ?ContactList { return $this->contactList; } public function setContactList(?ContactList $contactList): self { $this->contactList = $contactList; return $this; }}