<?phpnamespace App\Entity\Chat;use App\Entity\Account\User;use App\Repository\Chat\ChatNotificationRepository;use Doctrine\ORM\Mapping as ORM;use DrosalysWeb\ObjectExtensions\Timestamp\Model\TimestampInterface;use DrosalysWeb\ObjectExtensions\Timestamp\Model\TimestampTrait;use Symfony\Component\Serializer\Annotation as Serial;#[ORM\Entity(repositoryClass: ChatNotificationRepository::class)]class ChatNotification implements TimestampInterface{ use TimestampTrait; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] #[Serial\Groups(['ChatNotification'])] private ?int $id = null; #[ORM\Column(type: 'integer')] #[Serial\Groups(['ChatNotification'])] private ?int $type = null; #[ORM\Column(type: 'datetime')] #[Serial\Groups(['ChatNotification'])] protected $createdAt; #[ORM\Column(type: 'string', length: 255, nullable: true)] #[Serial\Groups(['ChatNotification'])] private ?string $link = null; #[ORM\Column(type: 'text')] #[Serial\Groups(['ChatNotification'])] private ?string $content = null; #[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'chatNotifications')] #[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')] #[Serial\Groups(['ChatNotification'])] private ?User $user = null; #[ORM\Column(type: 'boolean')] #[Serial\Groups(['ChatNotification'])] private ?bool $hasBeenSeen = null; #[ORM\ManyToOne(targetEntity: Message::class, inversedBy: 'chatNotifications')] #[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')] #[Serial\Groups(['ChatNotification'])] private ?Message $message = null; public function getId(): ?int { return $this->id; } public function getType(): ?int { return $this->type; } public function setType(int $type): self { $this->type = $type; return $this; } public function getLink(): ?string { return $this->link; } public function setLink(string $link): self { $this->link = $link; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getHasBeenSeen(): ?bool { return $this->hasBeenSeen; } public function setHasBeenSeen(bool $hasBeenSeen): self { $this->hasBeenSeen = $hasBeenSeen; return $this; } public function getMessage(): ?Message { return $this->message; } public function setMessage(?Message $message): self { $this->message = $message; return $this; }}