src/Entity/PushNotification.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use App\Repository\PushNotificationRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassPushNotificationRepository::class)]
  7. class PushNotification
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $title null;
  15.     #[ORM\Column(typeTypes::TEXT)]
  16.     private ?string $body null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?\DateTimeImmutable $createAt null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getTitle(): ?string
  24.     {
  25.         return $this->title;
  26.     }
  27.     public function setTitle(?string $title): static
  28.     {
  29.         $this->title $title;
  30.         return $this;
  31.     }
  32.     public function getBody(): ?string
  33.     {
  34.         return $this->body;
  35.     }
  36.     public function setBody(?string $body): static
  37.     {
  38.         $this->body $body;
  39.         return $this;
  40.     }
  41.     public function getCreateAt(): ?\DateTimeImmutable
  42.     {
  43.         return $this->createAt;
  44.     }
  45.     public function setCreateAt(?\DateTimeImmutable $createAt): static
  46.     {
  47.         $this->createAt $createAt;
  48.         return $this;
  49.     }
  50. }