<?phpnamespace App\Entity;use App\Repository\NotificationsRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=NotificationsRepository::class) */class Notifications{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $label; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $content; /** * @ORM\Column(type="string", length=255) */ private $type; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="notifications") */ private $product_id; /** * @ORM\Column(type="datetime") */ private $date_creation; /** * @ORM\Column(type="boolean") */ private $isRead; public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(?string $label): self { $this->label = $label; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(?string $content): self { $this->content = $content; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getProductId(): ?Product { return $this->product_id; } public function setProductId(?Product $product_id): self { $this->product_id = $product_id; return $this; } public function getDateCreation(): ?\DateTimeInterface { return $this->date_creation; } public function setDateCreation(\DateTimeInterface $date_creation): self { $this->date_creation = $date_creation; return $this; } public function isIsRead(): ?bool { return $this->isRead; } public function setIsRead(bool $isRead): self { $this->isRead = $isRead; return $this; }}