src/Entity/InvoiceLine.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoiceLineRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassInvoiceLineRepository::class)]
  6. class InvoiceLine
  7. {
  8.     use IdentifiableTrait;
  9.     #[ORM\Column]
  10.     private ?int $productQuantity null;
  11.     #[ORM\Column]
  12.     private ?float $purchasePrice null;
  13.     #[ORM\Column]
  14.     private ?float $priceWithoutTax null;
  15.     #[ORM\Column]
  16.     private ?float $vat null;
  17.     #[ORM\ManyToOne(inversedBy'invoiceLines')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Invoice $invoice null;
  20.     #[ORM\ManyToOne(inversedBy'invoiceLines')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?Product $product null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getProductQuantity(): ?int
  28.     {
  29.         return $this->productQuantity;
  30.     }
  31.     public function setProductQuantity(int $productQuantity): self
  32.     {
  33.         $this->productQuantity $productQuantity;
  34.         return $this;
  35.     }
  36.     public function getPurchasePrice(): ?float
  37.     {
  38.         return $this->purchasePrice;
  39.     }
  40.     public function setPurchasePrice(float $purchasePrice): self
  41.     {
  42.         $this->purchasePrice $purchasePrice;
  43.         return $this;
  44.     }
  45.     public function getPriceWithoutTax(): ?float
  46.     {
  47.         return $this->priceWithoutTax;
  48.     }
  49.     public function setPriceWithoutTax(float $priceWithoutTax): self
  50.     {
  51.         $this->priceWithoutTax $priceWithoutTax;
  52.         return $this;
  53.     }
  54.     public function getVat(): ?float
  55.     {
  56.         return $this->vat;
  57.     }
  58.     public function setVat(float $vat): self
  59.     {
  60.         $this->vat $vat;
  61.         return $this;
  62.     }
  63.     public function getInvoice(): ?Invoice
  64.     {
  65.         return $this->invoice;
  66.     }
  67.     public function setInvoice(?Invoice $invoice): self
  68.     {
  69.         $this->invoice $invoice;
  70.         return $this;
  71.     }
  72.     public function getProduct(): ?Product
  73.     {
  74.         return $this->product;
  75.     }
  76.     public function setProduct(?Product $product): self
  77.     {
  78.         $this->product $product;
  79.         return $this;
  80.     }
  81. }