<?phpnamespace App\Entity\Gos;use App\Repository\Gos\PaymentRemindersRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PaymentRemindersRepository::class) */class PaymentReminders{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToMany(targetEntity=ProductVariant::class, inversedBy="paymentReminders") */ private $productVariant; /** * @ORM\ManyToOne(targetEntity=EmailType::class) */ private $emailType; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $smsMessage; /** * @ORM\Column(type="integer") */ private $sendAfterDays; /** * @ORM\ManyToOne(targetEntity=EmailBody::class, inversedBy="paymentReminders") */ private $emailBody; public function __construct() { $this->productVariant = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return Collection|ProductVariant[] */ public function getProductVariant(): Collection { return $this->productVariant; } public function addProductVariant(ProductVariant $productVariant): self { if (!$this->productVariant->contains($productVariant)) { $this->productVariant[] = $productVariant; } return $this; } public function removeProductVariant(ProductVariant $productVariant): self { if ($this->productVariant->contains($productVariant)) { $this->productVariant->removeElement($productVariant); } return $this; } public function getEmailType(): ?EmailType { return $this->emailType; } public function setEmailType(?EmailType $emailType): self { $this->emailType = $emailType; return $this; } public function getSmsMessage(): ?string { return $this->smsMessage; } public function setSmsMessage(?string $smsMessage): self { $this->smsMessage = $smsMessage; return $this; } public function getSendAfterDays(): ?int { return $this->sendAfterDays; } public function setSendAfterDays(int $sendAfterDays): self { $this->sendAfterDays = $sendAfterDays; return $this; } public function getEmailBody(): ?EmailBody { return $this->emailBody; } public function setEmailBody(?EmailBody $emailBody): self { $this->emailBody = $emailBody; return $this; }}