src/Entity/Notification/NotificationLog.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Notification;
  3. use App\Entity\User\User;
  4. use App\Repository\Notification\NotificationLogRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassNotificationLogRepository::class)]
  7. class NotificationLog
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne]
  14.     private ?Notification $notification null;
  15.     #[ORM\ManyToOne]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?User $user null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?\DateTimeImmutable $readedAt null;
  20.     #[ORM\Column]
  21.     private ?\DateTimeImmutable $createdAt null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getNotification(): ?Notification
  27.     {
  28.         return $this->notification;
  29.     }
  30.     public function setNotification(?Notification $notification): static
  31.     {
  32.         $this->notification $notification;
  33.         return $this;
  34.     }
  35.     public function getUser(): ?User
  36.     {
  37.         return $this->user;
  38.     }
  39.     public function setUser(?User $user): static
  40.     {
  41.         $this->user $user;
  42.         return $this;
  43.     }
  44.     public function getReadedAt(): ?\DateTimeImmutable
  45.     {
  46.         return $this->readedAt;
  47.     }
  48.     public function setReadedAt(?\DateTimeImmutable $readedAt): static
  49.     {
  50.         $this->readedAt $readedAt;
  51.         return $this;
  52.     }
  53.     public function getCreatedAt(): ?\DateTimeImmutable
  54.     {
  55.         return $this->createdAt;
  56.     }
  57.     public function setCreatedAt(\DateTimeImmutable $createdAt): static
  58.     {
  59.         $this->createdAt $createdAt;
  60.         return $this;
  61.     }
  62. }