src/Entity/SubTransactions/StreamMasters.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\SubTransactions;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Generic\User;
  5. use App\Repository\SubTransactions\StreamMastersRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  9. #[ORM\Entity(repositoryClassStreamMastersRepository::class)]
  10. class StreamMasters extends BaseEntity
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\Column(type'guid'uniquetrue)]
  14.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  15.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  16.     private ?string $id null;
  17.     #[ORM\ManyToOne(inversedBy'streamMasters')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?User $owner null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $refId null;
  22.     #[ORM\Column(typeTypes::BIGINT)]
  23.     private ?string $price null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $paymentUuid null;
  26.     #[ORM\Column]
  27.     private ?bool $isPaid null;
  28.     public function __construct()
  29.     {
  30.         parent::__construct();
  31.         $this->isPaid false;
  32.     }
  33.     public function getId(): ?string
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getOwner(): ?User
  38.     {
  39.         return $this->owner;
  40.     }
  41.     public function setOwner(?User $owner): static
  42.     {
  43.         $this->owner $owner;
  44.         return $this;
  45.     }
  46.     public function getRefId(): ?string
  47.     {
  48.         return $this->refId;
  49.     }
  50.     public function setRefId(?string $refId): static
  51.     {
  52.         $this->refId $refId;
  53.         return $this;
  54.     }
  55.     public function getPrice(): ?string
  56.     {
  57.         return $this->price;
  58.     }
  59.     public function setPrice(string $price): static
  60.     {
  61.         $this->price $price;
  62.         return $this;
  63.     }
  64.     public function getPaymentUuid(): ?string
  65.     {
  66.         return $this->paymentUuid;
  67.     }
  68.     public function setPaymentUuid(string $paymentUuid): static
  69.     {
  70.         $this->paymentUuid $paymentUuid;
  71.         return $this;
  72.     }
  73.     public function isIsPaid(): ?bool
  74.     {
  75.         return $this->isPaid;
  76.     }
  77.     public function setIsPaid(bool $isPaid): static
  78.     {
  79.         $this->isPaid $isPaid;
  80.         return $this;
  81.     }
  82. }