<?phpnamespace App\Entity;use App\Entity\Traits\Timestampable;use App\Repository\UserNotificationsRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use JMS\Serializer\Annotation\Groups;#[ORM\HasLifecycleCallbacks()]#[ORM\Entity(repositoryClass: UserNotificationsRepository::class)]class UserNotifications{ use Timestampable; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] #[Groups(["getUserNotification"])] private ?int $id = null; #[ORM\Column(length: 255)] #[Groups(["getUserNotification"])] private ?string $title = null; #[ORM\Column(type: Types::TEXT)] #[Groups(["getUserNotification"])] private ?string $content = null; #[ORM\ManyToOne(inversedBy: 'userNotifications')] #[Groups(["getUserNotification"])] private ?User $user = null; #[ORM\Column(length: 255, nullable: true)] #[Groups(["getUserNotification"])] private ?string $expoPushToken = null; #[ORM\Column(length: 255)] #[Groups(["getUserNotification"])] private ?string $type = null; #[ORM\Column(nullable: true)] #[Groups(["getUserNotification"])] private ?int $dataId = null; #[ORM\Column(nullable: true)] private ?bool $isRed = null; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): static { $this->title = $title; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(string $content): static { $this->content = $content; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): static { $this->user = $user; return $this; } public function getExpoPushToken(): ?string { return $this->expoPushToken; } public function setExpoPushToken(?string $expoPushToken): static { $this->expoPushToken = $expoPushToken; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): static { $this->type = $type; return $this; } public function getDataId(): ?int { return $this->dataId; } public function setDataId(?int $dataId): static { $this->dataId = $dataId; return $this; } public function isIsRed(): ?bool { return $this->isRed; } public function setIsRed(?bool $isRed): static { $this->isRed = $isRed; return $this; }}