src/Entity/ClientNotification.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ClientNotificationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassClientNotificationRepository::class)]
  7. class ClientNotification
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'clientNotifications')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Client $client null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $title null;
  18.     #[ORM\Column(typeTypes::TEXT)]
  19.     private ?string $notificationText null;
  20.     #[ORM\Column]
  21.     private ?\DateTime $createdAt null;
  22.     #[ORM\Column]
  23.     private ?bool $notificationRead null;
  24.     #[ORM\Column(nullable:true)]
  25.     private ?string $type;
  26.     public  function getType(): ?string
  27.     {
  28.         return $this->type;
  29.     }
  30.     public  function setType(string $type): static
  31.     {
  32.         $this->type $type;
  33.         return $this;
  34.     }
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getClient(): ?Client
  40.     {
  41.         return $this->client;
  42.     }
  43.     public function setClient(?Client $client): static
  44.     {
  45.         $this->client $client;
  46.         return $this;
  47.     }
  48.     public function getTitle(): ?string
  49.     {
  50.         return $this->title;
  51.     }
  52.     public function setTitle(string $title): static
  53.     {
  54.         $this->title $title;
  55.         return $this;
  56.     }
  57.     public function getNotificationText(): ?string
  58.     {
  59.         return $this->notificationText;
  60.     }
  61.     public function setNotificationText(string $notificationText): static
  62.     {
  63.         $this->notificationText $notificationText;
  64.         return $this;
  65.     }
  66.     public function getCreatedAt(): ?\DateTime
  67.     {
  68.         return $this->createdAt;
  69.     }
  70.     public function setCreatedAt(\DateTime $createdAt): static
  71.     {
  72.         $this->createdAt $createdAt;
  73.         return $this;
  74.     }
  75.     public function isNotificationRead(): ?bool
  76.     {
  77.         return $this->notificationRead;
  78.     }
  79.     public function setNotificationRead(bool $notificationRead): static
  80.     {
  81.         $this->notificationRead $notificationRead;
  82.         return $this;
  83.     }
  84. }