src/Flexy/ShopBundle/Entity/Order/TicketsCustomer.php line 12
<?phpnamespace App\Flexy\ShopBundle\Entity\Order;use App\Flexy\ShopBundle\Entity\Customer\Customer;use App\Repository\Flexy\ShopBundle\Entity\Order\TicketsCustomerRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use \App\Flexy\ShopBundle\Entity\Order\Order;#[ORM\Entity(repositoryClass: TicketsCustomerRepository::class)]class TicketsCustomer{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255, nullable: true)]private ?string $code = null;#[ORM\Column(nullable: true)]private ?float $amount = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $expiration_date = null;#[ORM\ManyToOne(inversedBy: 'ticketsCustomers')]private ?Customer $user_id = null;#[ORM\Column(nullable: true)]private ?bool $is_used = null;#[ORM\ManyToOne(inversedBy: 'ticketsCustomers')]private ?Order $parent_order_ticket = null;#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]private ?\DateTimeInterface $date_of_use = null;public function getId(): ?int{return $this->id;}public function getCode(): ?string{return $this->code;}public function setCode(?string $code): static{$this->code = $code;return $this;}public function getAmount(): ?float{return $this->amount;}public function setAmount(?float $amount): static{$this->amount = $amount;return $this;}public function getExpirationDate(): ?\DateTimeInterface{return $this->expiration_date;}public function setExpirationDate(?\DateTimeInterface $expiration_date): static{$this->expiration_date = $expiration_date;return $this;}public function getUserId(): ?Customer{return $this->user_id;}public function setUserId(?Customer $user_id): static{$this->user_id = $user_id;return $this;}public function isIsUsed(): ?bool{return $this->is_used;}public function setIsUsed(?bool $is_used): static{$this->is_used = $is_used;return $this;}public function getParentOrderTicket(): ?Order{return $this->parent_order_ticket;}public function setParentOrderTicket(?Order $parent_order_ticket): static{$this->parent_order_ticket = $parent_order_ticket;return $this;}public function getDateOfUse(): ?\DateTimeInterface{return $this->date_of_use;}public function setDateOfUse(?\DateTimeInterface $date_of_use): static{$this->date_of_use = $date_of_use;return $this;}}