<?phpnamespace App\Entity;use App\Repository\NotificationRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=NotificationRepository::class) */class Notification{ const DEFAULT_ICON = "icon-feather-bell"; const TYPE_POST_FAVORY = "post_favory"; const TYPE_POST_COMMENT = "post_comment"; const TYPE_POST_REPLY = "post_reply"; const TYPE_POST_OWNER = "post_owner"; const TYPE_MISSION_ALERT = "mission_alert"; const TYPE_MISSION_APPLY = "mission_apply"; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=25) */ private ?string $type; /** * @ORM\Column(type="string", length=255, nullable=true) */ private ?string $rubriqueID; /** * @ORM\Column(type="text") */ private ?string $content; /** * @ORM\Column(type="boolean", nullable=true) */ private ?bool $seen; /** * @ORM\Column(type="datetime") */ private ?\DateTimeInterface $createdAt; /** * @ORM\Column(type="string", length=50, nullable=true) */ private ?string $icon; /** * @ORM\ManyToOne(targetEntity=User::class) */ private ?User $user; /** * @ORM\Column(type="datetime") */ private ?\DateTimeInterface $updatedAt; public function __construct() { $this->createdAt = new \DateTime(); $this->updatedAt = new \DateTime(); $this->icon = self::DEFAULT_ICON; $this->seen = false; } public function getId(): ?int { return $this->id; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getRubriqueID(): ?string { return $this->rubriqueID; } public function setRubriqueID(?string $rubriqueID): self { $this->rubriqueID = $rubriqueID; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function isSeen(): ?bool { return $this->seen; } public function setSeen(?bool $seen): self { $this->seen = $seen; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getIcon(): ?string { return $this->icon; } public function setIcon(?string $icon): self { $this->icon = $icon; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; }}