src/Entity/Gos/LeadReminders.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\LeadRemindersRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LeadRemindersRepository::class)
  7.  * @ORM\HasLifecycleCallbacks()
  8.  */
  9. class LeadReminders
  10. {
  11.     public const DEFAULT_REMINDER_DAYS =
  12.         [
  13.           'event' =>
  14.               [
  15.                   'firstReminderDays' => 1,
  16.                   'secondReminderDays' => 5,
  17.                   'lastReminderDays' => null,
  18.               ],
  19.           'newsletter' =>
  20.               [
  21.                   'firstReminderDays' => 1,
  22.                   'secondReminderDays' => 14,
  23.                   'lastReminderDays' => 60,
  24.               ]
  25.         ];
  26.     /**
  27.      * @ORM\Id
  28.      * @ORM\GeneratedValue
  29.      * @ORM\Column(type="integer")
  30.      */
  31.     private $id;
  32.     /**
  33.      * @ORM\Column(type="boolean")
  34.      */
  35.     private $generateReminders;
  36.     /**
  37.      * @ORM\Column(type="integer", nullable=true)
  38.      */
  39.     private $firstReminderDays;
  40.     /**
  41.      * @ORM\Column(type="boolean")
  42.      */
  43.     private $firstReminderUseDate;
  44.     /**
  45.      * @ORM\Column(type="date", nullable=true)
  46.      */
  47.     private $firstReminderDate;
  48.     /**
  49.      * @ORM\Column(type="integer", nullable=true)
  50.      */
  51.     private $secondReminderDays;
  52.     /**
  53.      * @ORM\Column(type="boolean")
  54.      */
  55.     private $secondReminderUseDate;
  56.     /**
  57.      * @ORM\Column(type="date", nullable=true)
  58.      */
  59.     private $secondReminderDate;
  60.     /**
  61.      * @ORM\Column(type="integer", nullable=true)
  62.      */
  63.     private $lastReminderDays;
  64.     /**
  65.      * @ORM\Column(type="boolean")
  66.      */
  67.     private $lastReminderUseDate;
  68.     /**
  69.      * @ORM\Column(type="date", nullable=true)
  70.      */
  71.     private $lastReminderDate;
  72.     /**
  73.      * @ORM\Column(type="datetime")
  74.      */
  75.     private $createdAt;
  76.     /**
  77.      * @ORM\Column(type="datetime", nullable=true)
  78.      */
  79.     private $updatedAt;
  80.     /**
  81.      * @ORM\PrePersist()
  82.      */
  83.     public function prePersist()
  84.     {
  85.         $this->createdAt = new \DateTime();
  86.     }
  87.     /**
  88.      * @ORM\PreUpdate()
  89.      */
  90.     public function preUpdate()
  91.     {
  92.         $this->updatedAt = new \DateTime();
  93.     }
  94.     public function getId(): ?int
  95.     {
  96.         return $this->id;
  97.     }
  98.     public function getGenerateReminders(): ?bool
  99.     {
  100.         return $this->generateReminders;
  101.     }
  102.     public function setGenerateReminders(bool $generateReminders): self
  103.     {
  104.         $this->generateReminders $generateReminders;
  105.         return $this;
  106.     }
  107.     public function getFirstReminderDays(): ?int
  108.     {
  109.         return $this->firstReminderDays;
  110.     }
  111.     public function setFirstReminderDays(?int $firstReminderDays): self
  112.     {
  113.         $this->firstReminderDays $firstReminderDays;
  114.         return $this;
  115.     }
  116.     public function getFirstReminderUseDate(): ?bool
  117.     {
  118.         return $this->firstReminderUseDate;
  119.     }
  120.     public function setFirstReminderUseDate(bool $firstReminderUseDate): self
  121.     {
  122.         $this->firstReminderUseDate $firstReminderUseDate;
  123.         return $this;
  124.     }
  125.     public function getFirstReminderDate(): ?\DateTimeInterface
  126.     {
  127.         return $this->firstReminderDate;
  128.     }
  129.     public function setFirstReminderDate(?\DateTimeInterface $firstReminderDate): self
  130.     {
  131.         $this->firstReminderDate $firstReminderDate;
  132.         return $this;
  133.     }
  134.     public function getSecondReminderDays(): ?int
  135.     {
  136.         return $this->secondReminderDays;
  137.     }
  138.     public function setSecondReminderDays(?int $secondReminderDays): self
  139.     {
  140.         $this->secondReminderDays $secondReminderDays;
  141.         return $this;
  142.     }
  143.     public function getSecondReminderUseDate(): ?bool
  144.     {
  145.         return $this->secondReminderUseDate;
  146.     }
  147.     public function setSecondReminderUseDate(bool $secondReminderUseDate): self
  148.     {
  149.         $this->secondReminderUseDate $secondReminderUseDate;
  150.         return $this;
  151.     }
  152.     public function getSecondReminderDate(): ?\DateTimeInterface
  153.     {
  154.         return $this->secondReminderDate;
  155.     }
  156.     public function setSecondReminderDate(?\DateTimeInterface $secondReminderDate): self
  157.     {
  158.         $this->secondReminderDate $secondReminderDate;
  159.         return $this;
  160.     }
  161.     public function getLastReminderDays(): ?int
  162.     {
  163.         return $this->lastReminderDays;
  164.     }
  165.     public function setLastReminderDays(?int $lastReminderDays): self
  166.     {
  167.         $this->lastReminderDays $lastReminderDays;
  168.         return $this;
  169.     }
  170.     public function getLastReminderUseDate(): ?bool
  171.     {
  172.         return $this->lastReminderUseDate;
  173.     }
  174.     public function setLastReminderUseDate(bool $lastReminderUseDate): self
  175.     {
  176.         $this->lastReminderUseDate $lastReminderUseDate;
  177.         return $this;
  178.     }
  179.     public function getLastReminderDate(): ?\DateTimeInterface
  180.     {
  181.         return $this->lastReminderDate;
  182.     }
  183.     public function setLastReminderDate(?\DateTimeInterface $lastReminderDate): self
  184.     {
  185.         $this->lastReminderDate $lastReminderDate;
  186.         return $this;
  187.     }
  188.     public function getCreatedAt(): ?\DateTimeInterface
  189.     {
  190.         return $this->createdAt;
  191.     }
  192.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  193.     {
  194.         $this->createdAt $createdAt;
  195.         return $this;
  196.     }
  197.     public function getUpdatedAt(): ?\DateTimeInterface
  198.     {
  199.         return $this->updatedAt;
  200.     }
  201.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  202.     {
  203.         $this->updatedAt $updatedAt;
  204.         return $this;
  205.     }
  206. }