src/Entity/Notification.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NotificationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassNotificationRepository::class)]
  6. class Notification
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'notifications')]
  13.     private $user;
  14.     #[ORM\Column(type'text'nullabletrue)]
  15.     private $message;
  16.     #[ORM\Column(type'datetime')]
  17.     private $createdAt;
  18.     #[ORM\Column(type'datetime'nullabletrue)]
  19.     private $readAt;
  20.     #[ORM\Column(type'integer'nullabletrue)]
  21.     private $uniqueId;
  22.     #[ORM\Column(type'array'nullabletrue)]
  23.     private $data;
  24.     #[ORM\Column(type'boolean')]
  25.     private $disabled false;
  26.     #[ORM\Column(type'string'length32nullabletrue)]
  27.     private $iconClass;
  28.     #[ORM\Column(type'datetime'nullabletrue)]
  29.     private $expiredAt;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function setCompany(?Company $company): self
  35.     {
  36.         $this->company $company;
  37.         return $this;
  38.     }
  39.     public function getUser(): ?User
  40.     {
  41.         return $this->user;
  42.     }
  43.     public function setUser(?User $user): self
  44.     {
  45.         $this->user $user;
  46.         return $this;
  47.     }
  48.     public function getMessage(): ?string
  49.     {
  50.         return $this->message;
  51.     }
  52.     public function setMessage(?string $message): self
  53.     {
  54.         $this->message $message;
  55.         return $this;
  56.     }
  57.     public function getCreatedAt(): ?\DateTimeInterface
  58.     {
  59.         return $this->createdAt;
  60.     }
  61.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  62.     {
  63.         $this->createdAt $createdAt;
  64.         return $this;
  65.     }
  66.     public function getReadAt(): ?\DateTimeInterface
  67.     {
  68.         return $this->readAt;
  69.     }
  70.     public function setReadAt(?\DateTimeInterface $readAt): self
  71.     {
  72.         $this->readAt $readAt;
  73.         return $this;
  74.     }
  75.     public function getUniqueId(): ?int
  76.     {
  77.         return $this->uniqueId;
  78.     }
  79.     public function setUniqueId(?int $uniqueId): self
  80.     {
  81.         $this->uniqueId $uniqueId;
  82.         return $this;
  83.     }
  84.     public function getData(): ?array
  85.     {
  86.         return $this->data;
  87.     }
  88.     public function setData(?array $data): self
  89.     {
  90.         $this->data $data;
  91.         return $this;
  92.     }
  93.     public function getDisabled(): ?bool
  94.     {
  95.         return $this->disabled;
  96.     }
  97.     public function setDisabled(bool $disabled): self
  98.     {
  99.         $this->disabled $disabled;
  100.         return $this;
  101.     }
  102.     public function getIconClass(): ?string
  103.     {
  104.         return $this->iconClass;
  105.     }
  106.     public function setIconClass(?string $iconClass): self
  107.     {
  108.         $this->iconClass $iconClass;
  109.         return $this;
  110.     }
  111.     public function getExpiredAt(): ?\DateTimeInterface
  112.     {
  113.         return $this->expiredAt;
  114.     }
  115.     public function setExpiredAt(?\DateTimeInterface $expiredAt): self
  116.     {
  117.         $this->expiredAt $expiredAt;
  118.         return $this;
  119.     }
  120. }