src/Entity/NotificationView.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NotificationViewRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassNotificationViewRepository::class)]
  6. class NotificationView
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'notificationViews')]
  13.     private ?Locataire $locataire null;
  14.     #[ORM\ManyToOne(inversedBy'notificationViews')]
  15.     private ?Announcement $annoucement null;
  16.     #[ORM\Column]
  17.     private ?bool $view null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?bool $smsSent null;
  20.     #[ORM\Column(length50nullabletrue)]
  21.     private ?string $smsStatus null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getLocataire(): ?Locataire
  27.     {
  28.         return $this->locataire;
  29.     }
  30.     public function setLocataire(?Locataire $locataire): static
  31.     {
  32.         $this->locataire $locataire;
  33.         return $this;
  34.     }
  35.     public function getAnnoucement(): ?Announcement
  36.     {
  37.         return $this->annoucement;
  38.     }
  39.     public function setAnnoucement(?Announcement $annoucement): static
  40.     {
  41.         $this->annoucement $annoucement;
  42.         return $this;
  43.     }
  44.     public function isView(): ?bool
  45.     {
  46.         return $this->view;
  47.     }
  48.     public function setView(bool $view): static
  49.     {
  50.         $this->view $view;
  51.         return $this;
  52.     }
  53.     public function isSmsSent(): ?bool
  54.     {
  55.         return $this->smsSent;
  56.     }
  57.     public function setSmsSent(?bool $smsSent): static
  58.     {
  59.         $this->smsSent $smsSent;
  60.         return $this;
  61.     }
  62.     public function getSmsStatus(): ?string
  63.     {
  64.         return $this->smsStatus;
  65.     }
  66.     public function setSmsStatus(?string $smsStatus): static
  67.     {
  68.         $this->smsStatus $smsStatus;
  69.         return $this;
  70.     }
  71. }