<?php
namespace App\Entity\SubTransactions;
use App\Entity\BaseEntity;
use App\Entity\Generic\User;
use App\Repository\SubTransactions\StreamMastersRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
#[ORM\Entity(repositoryClass: StreamMastersRepository::class)]
class StreamMasters extends BaseEntity
{
#[ORM\Id]
#[ORM\Column(type: 'guid', unique: true)]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
private ?string $id = null;
#[ORM\ManyToOne(inversedBy: 'streamMasters')]
#[ORM\JoinColumn(nullable: false)]
private ?User $owner = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $refId = null;
#[ORM\Column(type: Types::BIGINT)]
private ?string $price = null;
#[ORM\Column(length: 255)]
private ?string $paymentUuid = null;
#[ORM\Column]
private ?bool $isPaid = null;
public function __construct()
{
parent::__construct();
$this->isPaid = false;
}
public function getId(): ?string
{
return $this->id;
}
public function getOwner(): ?User
{
return $this->owner;
}
public function setOwner(?User $owner): static
{
$this->owner = $owner;
return $this;
}
public function getRefId(): ?string
{
return $this->refId;
}
public function setRefId(?string $refId): static
{
$this->refId = $refId;
return $this;
}
public function getPrice(): ?string
{
return $this->price;
}
public function setPrice(string $price): static
{
$this->price = $price;
return $this;
}
public function getPaymentUuid(): ?string
{
return $this->paymentUuid;
}
public function setPaymentUuid(string $paymentUuid): static
{
$this->paymentUuid = $paymentUuid;
return $this;
}
public function isIsPaid(): ?bool
{
return $this->isPaid;
}
public function setIsPaid(bool $isPaid): static
{
$this->isPaid = $isPaid;
return $this;
}
}