src/Entity/Gos/PaymentReminders.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\PaymentRemindersRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=PaymentRemindersRepository::class)
  9.  */
  10. class PaymentReminders
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToMany(targetEntity=ProductVariant::class, inversedBy="paymentReminders")
  20.      */
  21.     private $productVariant;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=EmailType::class)
  24.      */
  25.     private $emailType;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $smsMessage;
  30.     /**
  31.      * @ORM\Column(type="integer")
  32.      */
  33.     private $sendAfterDays;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=EmailBody::class, inversedBy="paymentReminders")
  36.      */
  37.     private $emailBody;
  38.     public function __construct()
  39.     {
  40.         $this->productVariant = new ArrayCollection();
  41.     }
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     /**
  47.      * @return Collection|ProductVariant[]
  48.      */
  49.     public function getProductVariant(): Collection
  50.     {
  51.         return $this->productVariant;
  52.     }
  53.     public function addProductVariant(ProductVariant $productVariant): self
  54.     {
  55.         if (!$this->productVariant->contains($productVariant)) {
  56.             $this->productVariant[] = $productVariant;
  57.         }
  58.         return $this;
  59.     }
  60.     public function removeProductVariant(ProductVariant $productVariant): self
  61.     {
  62.         if ($this->productVariant->contains($productVariant)) {
  63.             $this->productVariant->removeElement($productVariant);
  64.         }
  65.         return $this;
  66.     }
  67.     public function getEmailType(): ?EmailType
  68.     {
  69.         return $this->emailType;
  70.     }
  71.     public function setEmailType(?EmailType $emailType): self
  72.     {
  73.         $this->emailType $emailType;
  74.         return $this;
  75.     }
  76.     public function getSmsMessage(): ?string
  77.     {
  78.         return $this->smsMessage;
  79.     }
  80.     public function setSmsMessage(?string $smsMessage): self
  81.     {
  82.         $this->smsMessage $smsMessage;
  83.         return $this;
  84.     }
  85.     public function getSendAfterDays(): ?int
  86.     {
  87.         return $this->sendAfterDays;
  88.     }
  89.     public function setSendAfterDays(int $sendAfterDays): self
  90.     {
  91.         $this->sendAfterDays $sendAfterDays;
  92.         return $this;
  93.     }
  94.     public function getEmailBody(): ?EmailBody
  95.     {
  96.         return $this->emailBody;
  97.     }
  98.     public function setEmailBody(?EmailBody $emailBody): self
  99.     {
  100.         $this->emailBody $emailBody;
  101.         return $this;
  102.     }
  103. }