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(strategy'IDENTITY')]
  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.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $firebaseId null;
  29.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  30.     private ?\DateTimeInterface $firebaseStatusRecived null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  32.     private ?\DateTimeInterface $fireBaseStatusRead null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getNotification(): ?Notification
  38.     {
  39.         return $this->notification;
  40.     }
  41.     public function setNotification(?Notification $notification): static
  42.     {
  43.         $this->notification $notification;
  44.         return $this;
  45.     }
  46.     public function getToken(): ?UserToken
  47.     {
  48.         return $this->token;
  49.     }
  50.     public function setToken(?UserToken $token): static
  51.     {
  52.         $this->token $token;
  53.         return $this;
  54.     }
  55.     public function getStatus(): ?string
  56.     {
  57.         return $this->status;
  58.     }
  59.     public function setStatus(?string $status): static
  60.     {
  61.         $this->status $status;
  62.         return $this;
  63.     }
  64.     public function getDescription(): ?string
  65.     {
  66.         return $this->description;
  67.     }
  68.     public function setDescription(?string $description): static
  69.     {
  70.         $this->description $description;
  71.         return $this;
  72.     }
  73.     public function getError(): ?string
  74.     {
  75.         return $this->error;
  76.     }
  77.     public function setError(?string $error): static
  78.     {
  79.         $this->error $error;
  80.         return $this;
  81.     }
  82.     public function getDateEntered(): ?\DateTimeInterface
  83.     {
  84.         return $this->dateEntered;
  85.     }
  86.     public function setDateEntered(?\DateTimeInterface $dateEntered): static
  87.     {
  88.         $this->dateEntered $dateEntered;
  89.         return $this;
  90.     }
  91.     public function getFirebaseId(): ?string
  92.     {
  93.         return $this->firebaseId;
  94.     }
  95.     public function setFirebaseId(?string $firebaseId): static
  96.     {
  97.         $this->firebaseId $firebaseId;
  98.         return $this;
  99.     }
  100.     public function getFirebaseStatusRecived(): ?\DateTimeInterface
  101.     {
  102.         return $this->firebaseStatusRecived;
  103.     }
  104.     public function setFirebaseStatusRecived(?\DateTimeInterface $firebaseStatusRecived): static
  105.     {
  106.         $this->firebaseStatusRecived $firebaseStatusRecived;
  107.         return $this;
  108.     }
  109.     public function getFireBaseStatusRead(): ?\DateTimeInterface
  110.     {
  111.         return $this->fireBaseStatusRead;
  112.     }
  113.     public function setFireBaseStatusRead(?\DateTimeInterface $fireBaseStatusRead): static
  114.     {
  115.         $this->fireBaseStatusRead $fireBaseStatusRead;
  116.         return $this;
  117.     }
  118. }