src/Entity/Reminder.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReminderRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ReminderRepository::class)
  7.  */
  8. class Reminder
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="reminders")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $user;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $title;
  25.     /**
  26.      * @ORM\Column(type="text", nullable=true)
  27.      */
  28.     private $description;
  29.     /**
  30.      * @ORM\Column(type="date", nullable=true)
  31.      */
  32.     private $startDate;
  33.     /**
  34.      * @ORM\Column(type="integer", nullable=true)
  35.      */
  36.     private $reminderInterval;
  37.     /**
  38.      * @ORM\Column(type="integer", nullable=true)
  39.      */
  40.     private $status;
  41.     /**
  42.      * @ORM\Column(type="date", nullable=true)
  43.      */
  44.     private $lastDate;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getUser(): ?Users
  50.     {
  51.         return $this->user;
  52.     }
  53.     public function setUser(?Users $user): self
  54.     {
  55.         $this->user $user;
  56.         return $this;
  57.     }
  58.     public function getTitle(): ?string
  59.     {
  60.         return $this->title;
  61.     }
  62.     public function setTitle(string $title): self
  63.     {
  64.         $this->title $title;
  65.         return $this;
  66.     }
  67.     public function getDescription(): ?string
  68.     {
  69.         return $this->description;
  70.     }
  71.     public function setDescription(string $description): self
  72.     {
  73.         $this->description $description;
  74.         return $this;
  75.     }
  76.     public function getStartDate(): ?\DateTimeInterface
  77.     {
  78.         return $this->startDate;
  79.     }
  80.     public function setStartDate(?\DateTimeInterface $startDate): self
  81.     {
  82.         $this->startDate $startDate;
  83.         return $this;
  84.     }
  85.     public function getReminderInterval(): ?int
  86.     {
  87.         return $this->reminderInterval;
  88.     }
  89.     public function setReminderInterval(?int $reminderInterval): self
  90.     {
  91.         $this->reminderInterval $reminderInterval;
  92.         return $this;
  93.     }
  94.     public function getStatus(): ?int
  95.     {
  96.         return $this->status;
  97.     }
  98.     public function setStatus(?int $status): self
  99.     {
  100.         $this->status $status;
  101.         return $this;
  102.     }
  103.     public function getLastDate(): ?\DateTimeInterface
  104.     {
  105.         return $this->lastDate;
  106.     }
  107.     public function setLastDate(?\DateTimeInterface $lastDate): self
  108.     {
  109.         $this->lastDate $lastDate;
  110.         return $this;
  111.     }
  112. }