src/Entity/OrderItem.php line 10
<?phpnamespace App\Entity;use App\Repository\OrderItemRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Table(name: 'order_item')]#[ORM\Entity(repositoryClass: OrderItemRepository::class)]class OrderItem{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column]private ?bool $isActive = null;#[ORM\ManyToOne(targetEntity: Order::class, inversedBy: 'orderItem')]private ?object $order;#[ORM\ManyToOne(targetEntity: Tickets::class,fetch: 'EAGER', inversedBy: 'orderItem')]private object $ticket;#[ORM\Column(type: 'float', nullable: true)]private ?float $discountedPrice = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $price = null;#[ORM\Column(type: 'integer', nullable: true)]private ?int $quantity = null;#[ORM\Column(type: 'boolean', nullable:true)]private ?bool $isPackage = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $itemPrice = null;#[ORM\Column(length: 255, nullable: true)]private ?string $usePromoCode = null;#[ORM\Column(type: 'date', nullable: true)]private mixed $date = null;public function getId(): ?int{return $this->id;}public function isIsActive(): ?bool{return $this->isActive;}public function setIsActive(bool $isActive): static{$this->isActive = $isActive;return $this;}public function getQuantity(): ?int{return $this->quantity;}public function setQuantity(int $quantity): static{$this->quantity = $quantity;return $this;}public function isIsPackage(): ?bool{return $this->isPackage;}public function setIsPackage(bool $isPackage): static{$this->isPackage = $isPackage;return $this;}public function getItemPrice(): ?float{return $this->itemPrice;}public function setItemPrice(?float $itemPrice): void{$this->itemPrice = $itemPrice;}public function getPrice(): ?float{return $this->price;}public function setPrice(float $price): static{$this->price = $price;return $this;}public function getUsePromoCode(): ?string{return $this->usePromoCode;}public function setUsePromoCode(?string $usePromoCode): static{$this->usePromoCode = $usePromoCode;return $this;}public function getOrder(): ?Order{return $this->order;}public function setOrder(?Order $order): static{$this->order = $order;return $this;}public function getTicket(): object{return $this->ticket;}public function setTicket(object $ticket): void{$this->ticket = $ticket;}public function getDiscountedPrice(): ?float{return $this->discountedPrice;}public function setDiscountedPrice(?float $discountedPrice): static{$this->discountedPrice = $discountedPrice;return $this;}public function getDate(): mixed{return $this->date;}public function setDate(mixed $date): void{$this->date = $date;}}