src/Entity/NotificationTokens.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\NotificationTokensRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassNotificationTokensRepository::class)]
  8. #[ApiResource]
  9. class NotificationTokens
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'notificationTokens')]
  16.     private ?Notification $notification null;
  17.     #[ORM\ManyToOne(inversedBy'notificationTokens')]
  18.     private ?UserToken $token null;
  19.     #[ORM\Column(length100nullabletrue)]
  20.     private ?string $status null;
  21.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  22.     private ?string $description null;
  23.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  24.     private ?string $error null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $dateEntered null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getNotification(): ?Notification
  32.     {
  33.         return $this->notification;
  34.     }
  35.     public function setNotification(?Notification $notification): static
  36.     {
  37.         $this->notification $notification;
  38.         return $this;
  39.     }
  40.     public function getToken(): ?UserToken
  41.     {
  42.         return $this->token;
  43.     }
  44.     public function setToken(?UserToken $token): static
  45.     {
  46.         $this->token $token;
  47.         return $this;
  48.     }
  49.     public function getStatus(): ?string
  50.     {
  51.         return $this->status;
  52.     }
  53.     public function setStatus(?string $status): static
  54.     {
  55.         $this->status $status;
  56.         return $this;
  57.     }
  58.     public function getDescription(): ?string
  59.     {
  60.         return $this->description;
  61.     }
  62.     public function setDescription(?string $description): static
  63.     {
  64.         $this->description $description;
  65.         return $this;
  66.     }
  67.     public function getError(): ?string
  68.     {
  69.         return $this->error;
  70.     }
  71.     public function setError(?string $error): static
  72.     {
  73.         $this->error $error;
  74.         return $this;
  75.     }
  76.     public function getDateEntered(): ?\DateTimeInterface
  77.     {
  78.         return $this->dateEntered;
  79.     }
  80.     public function setDateEntered(?\DateTimeInterface $dateEntered): static
  81.     {
  82.         $this->dateEntered $dateEntered;
  83.         return $this;
  84.     }
  85. }