<?phpnamespace App\Entity;use App\Repository\NotificationReceiverRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=NotificationReceiverRepository::class) */class NotificationReceiver{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Notification::class, inversedBy="notificationReceivers") */ private $notification; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="notificationReceivers") */ private $receiver; /** * @ORM\Column(type="datetime", nullable=true) */ private $readAt; /** * @ORM\Column(type="array", nullable=true) */ private $topics = []; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; /** * @ORM\Column(type="boolean", nullable=true) */ private $isRead = false; public function getId(): ?int { return $this->id; } public function getNotification(): ?Notification { return $this->notification; } public function setNotification(?Notification $notification): self { $this->notification = $notification; return $this; } public function getReceiver(): ?User { return $this->receiver; } public function setReceiver(?User $receiver): self { $this->receiver = $receiver; return $this; } public function getReadAt(): ?\DateTimeInterface { return $this->readAt; } public function setReadAt(?\DateTimeInterface $readAt): self { $this->readAt = $readAt; return $this; } public function getTopics(): ?array { return $this->topics; } public function setTopics(?array $topics): self { $this->topics = $topics; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function isIsRead(): ?bool { return $this->isRead; } public function setIsRead(?bool $isRead): self { $this->isRead = $isRead; return $this; }}