src/Entity/InvoiceItem.php line 10
<?php
namespace App\Entity;
use App\Repository\InvoiceItemRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: InvoiceItemRepository::class)]
class InvoiceItem
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'invoiceItems')]
private ?Invoice $invoice = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $title = null;
#[ORM\Column(nullable: true)]
private ?float $amount = null;
#[ORM\Column(nullable: true)]
private ?float $tax = null;
#[ORM\Column(type: Types::SMALLINT, nullable: true)]
private ?int $quantity = null;
#[ORM\ManyToOne(inversedBy: 'invoiceItems')]
private ?Orders $orders = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $contractNumber = null;
public function getId(): ?int
{
return $this->id;
}
public function getInvoice(): ?Invoice
{
return $this->invoice;
}
public function setInvoice(?Invoice $invoice): static
{
$this->invoice = $invoice;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): static
{
$this->title = $title;
return $this;
}
public function getAmount(): ?float
{
return $this->amount;
}
public function setAmount(?float $amount): static
{
$this->amount = $amount;
return $this;
}
public function getTax(): ?float
{
return $this->tax;
}
public function setTax(?float $tax): static
{
$this->tax = $tax;
return $this;
}
public function getQuantity(): ?int
{
return $this->quantity;
}
public function setQuantity(?int $quantity): static
{
$this->quantity = $quantity;
return $this;
}
public function getOrders(): ?Orders
{
return $this->orders;
}
public function setOrders(?Orders $orders): static
{
$this->orders = $orders;
return $this;
}
public function getContractNumber(): ?string
{
return $this->contractNumber;
}
public function setContractNumber(?string $contractNumber): static
{
$this->contractNumber = $contractNumber;
return $this;
}
}