<?php
namespace App\Entity;
use App\Repository\NotificationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: NotificationRepository::class)]
class Notification
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'notifications')]
private $user;
#[ORM\Column(type: 'text', nullable: true)]
private $message;
#[ORM\Column(type: 'datetime')]
private $createdAt;
#[ORM\Column(type: 'datetime', nullable: true)]
private $readAt;
#[ORM\Column(type: 'integer', nullable: true)]
private $uniqueId;
#[ORM\Column(type: 'array', nullable: true)]
private $data;
#[ORM\Column(type: 'boolean')]
private $disabled = false;
#[ORM\Column(type: 'string', length: 32, nullable: true)]
private $iconClass;
#[ORM\Column(type: 'datetime', nullable: true)]
private $expiredAt;
public function getId(): ?int
{
return $this->id;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getReadAt(): ?\DateTimeInterface
{
return $this->readAt;
}
public function setReadAt(?\DateTimeInterface $readAt): self
{
$this->readAt = $readAt;
return $this;
}
public function getUniqueId(): ?int
{
return $this->uniqueId;
}
public function setUniqueId(?int $uniqueId): self
{
$this->uniqueId = $uniqueId;
return $this;
}
public function getData(): ?array
{
return $this->data;
}
public function setData(?array $data): self
{
$this->data = $data;
return $this;
}
public function getDisabled(): ?bool
{
return $this->disabled;
}
public function setDisabled(bool $disabled): self
{
$this->disabled = $disabled;
return $this;
}
public function getIconClass(): ?string
{
return $this->iconClass;
}
public function setIconClass(?string $iconClass): self
{
$this->iconClass = $iconClass;
return $this;
}
public function getExpiredAt(): ?\DateTimeInterface
{
return $this->expiredAt;
}
public function setExpiredAt(?\DateTimeInterface $expiredAt): self
{
$this->expiredAt = $expiredAt;
return $this;
}
}