src/Entity/InvoiceItem.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoiceItemRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassInvoiceItemRepository::class)]
  7. class InvoiceItem
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'invoiceItems')]
  14.     private ?Invoice $invoice null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $title null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?float $amount null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?float $tax null;
  21.     #[ORM\Column(typeTypes::SMALLINTnullabletrue)]
  22.     private ?int $quantity null;
  23.     #[ORM\ManyToOne(inversedBy'invoiceItems')]
  24.     private ?Orders $orders null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $contractNumber null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getInvoice(): ?Invoice
  32.     {
  33.         return $this->invoice;
  34.     }
  35.     public function setInvoice(?Invoice $invoice): static
  36.     {
  37.         $this->invoice $invoice;
  38.         return $this;
  39.     }
  40.     public function getTitle(): ?string
  41.     {
  42.         return $this->title;
  43.     }
  44.     public function setTitle(?string $title): static
  45.     {
  46.         $this->title $title;
  47.         return $this;
  48.     }
  49.     public function getAmount(): ?float
  50.     {
  51.         return $this->amount;
  52.     }
  53.     public function setAmount(?float $amount): static
  54.     {
  55.         $this->amount $amount;
  56.         return $this;
  57.     }
  58.     public function getTax(): ?float
  59.     {
  60.         return $this->tax;
  61.     }
  62.     public function setTax(?float $tax): static
  63.     {
  64.         $this->tax $tax;
  65.         return $this;
  66.     }
  67.     public function getQuantity(): ?int
  68.     {
  69.         return $this->quantity;
  70.     }
  71.     public function setQuantity(?int $quantity): static
  72.     {
  73.         $this->quantity $quantity;
  74.         return $this;
  75.     }
  76.     public function getOrders(): ?Orders
  77.     {
  78.         return $this->orders;
  79.     }
  80.     public function setOrders(?Orders $orders): static
  81.     {
  82.         $this->orders $orders;
  83.         return $this;
  84.     }
  85.     public function getContractNumber(): ?string
  86.     {
  87.         return $this->contractNumber;
  88.     }
  89.     public function setContractNumber(?string $contractNumber): static
  90.     {
  91.         $this->contractNumber $contractNumber;
  92.         return $this;
  93.     }
  94. }