src/Entity/Notifications.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NotificationsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=NotificationsRepository::class)
  7.  */
  8. class Notifications
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $label;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $content;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $type;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="notifications")
  30.      */
  31.     private $product_id;
  32.     /**
  33.      * @ORM\Column(type="datetime")
  34.      */
  35.     private $date_creation;
  36.     /**
  37.      * @ORM\Column(type="boolean")
  38.      */
  39.     private $isRead;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getLabel(): ?string
  45.     {
  46.         return $this->label;
  47.     }
  48.     public function setLabel(?string $label): self
  49.     {
  50.         $this->label $label;
  51.         return $this;
  52.     }
  53.     public function getContent(): ?string
  54.     {
  55.         return $this->content;
  56.     }
  57.     public function setContent(?string $content): self
  58.     {
  59.         $this->content $content;
  60.         return $this;
  61.     }
  62.     public function getType(): ?string
  63.     {
  64.         return $this->type;
  65.     }
  66.     public function setType(string $type): self
  67.     {
  68.         $this->type $type;
  69.         return $this;
  70.     }
  71.     public function getProductId(): ?Product
  72.     {
  73.         return $this->product_id;
  74.     }
  75.     public function setProductId(?Product $product_id): self
  76.     {
  77.         $this->product_id $product_id;
  78.         return $this;
  79.     }
  80.     public function getDateCreation(): ?\DateTimeInterface
  81.     {
  82.         return $this->date_creation;
  83.     }
  84.     public function setDateCreation(\DateTimeInterface $date_creation): self
  85.     {
  86.         $this->date_creation $date_creation;
  87.         return $this;
  88.     }
  89.     public function isIsRead(): ?bool
  90.     {
  91.         return $this->isRead;
  92.     }
  93.     public function setIsRead(bool $isRead): self
  94.     {
  95.         $this->isRead $isRead;
  96.         return $this;
  97.     }
  98. }