src/Database/Domain/Entity/User/UserAppleData.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Database\Domain\Entity\User;
  3. use App\Database\Domain\Entity\AbstractEntity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity()
  7.  */
  8. class UserAppleData extends AbstractEntity
  9. {
  10.     /**
  11.      * @ORM\Column(type="text", nullable=true)
  12.      */
  13.     private ?string $receipt;
  14.     /**
  15.      * @ORM\Column(type="string", nullable=true)
  16.      */
  17.     private ?string $signInSub;
  18.     /**
  19.      * @ORM\Column(type="text", nullable=true)
  20.      */
  21.     private ?string $transactionId;
  22.     public function __construct(string $id, ?string $receipt null, ?string $signInSub null)
  23.     {
  24.         $this->id $id;
  25.         $this->receipt $receipt;
  26.         $this->signInSub $signInSub;
  27.     }
  28.     public function getReceipt(): ?string
  29.     {
  30.         return $this->receipt;
  31.     }
  32.     public function setReceipt(?string $receipt): self
  33.     {
  34.         $this->receipt $receipt;
  35.         return $this;
  36.     }
  37.     public function getSignInSub(): ?string
  38.     {
  39.         return $this->signInSub;
  40.     }
  41.     public function setSignInSub(?string $signInSub): self
  42.     {
  43.         $this->signInSub $signInSub;
  44.         return $this;
  45.     }
  46.     public function hasReceipt(): bool
  47.     {
  48.         return $this->receipt !== null;
  49.     }
  50.     public function getTransactionId(): ?string
  51.     {
  52.         return $this->transactionId;
  53.     }
  54.     public function setTransactionId(?string $transactionId): void
  55.     {
  56.         $this->transactionId $transactionId;
  57.     }
  58. }