src/Entity/StockTransferProducts.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StockTransferProductsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassStockTransferProductsRepository::class)]
  8. class StockTransferProducts extends BaseEntity
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'float'nullablefalse)]
  15.     private $quantity;
  16.     #[ORM\Column(name'price_fob'type'decimal'precision19scale4nullabletrue)]
  17.     private $priceFob;
  18.     #[ORM\Column(name'price_navlun'type'decimal'precision19scale4nullabletrue)]
  19.     private $priceNavlun;
  20.     #[ORM\Column(name'total_unit_price'type'decimal'precision19scale4nullabletrue)]
  21.     private $totalUnitPrice;
  22.     #[ORM\Column(name'total_price'type'decimal'precision19scale4nullabletrue)]
  23.     private $totalPrice;
  24.     #[ORM\ManyToOne(targetEntityStockTransfer::class, inversedBy'products')]
  25.     private $stockTransfer;
  26.     #[ORM\ManyToOne(targetEntityProduct::class, inversedBy'stockTransferProducts')]
  27.     private $product;
  28.     #[ORM\Column(name'unitTransferCost'type'decimal'precision19scale4nullabletrue)]
  29.     private $unitTransferCost;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getStockTransfer(): ?StockTransfer
  35.     {
  36.         return $this->stockTransfer;
  37.     }
  38.     public function setStockTransfer(?StockTransfer $stockTransfer): self
  39.     {
  40.         $this->stockTransfer $stockTransfer;
  41.         return $this;
  42.     }
  43.     public function getQuantity()
  44.     {
  45.         return $this->quantity;
  46.     }
  47.     public function setQuantity($quantity)
  48.     {
  49.         $this->quantity $quantity;
  50.         return $this;
  51.     }
  52.     public function getPriceFob()
  53.     {
  54.         return $this->priceFob;
  55.     }
  56.     public function setPriceFob($priceFob): self
  57.     {
  58.         $this->priceFob $priceFob;
  59.         return $this;
  60.     }
  61.     public function getPriceNavlun()
  62.     {
  63.         return $this->priceNavlun;
  64.     }
  65.     public function setPriceNavlun($priceNavlun): self
  66.     {
  67.         $this->priceNavlun $priceNavlun;
  68.         return $this;
  69.     }
  70.     public function getTotalUnitPrice()
  71.     {
  72.         return $this->totalUnitPrice;
  73.     }
  74.     public function setTotalUnitPrice($totalUnitPrice): self
  75.     {
  76.         $this->totalUnitPrice $totalUnitPrice;
  77.         return $this;
  78.     }
  79.     public function getTotalPrice()
  80.     {
  81.         return $this->totalPrice;
  82.     }
  83.     public function setTotalPrice($totalPrice): self
  84.     {
  85.         $this->totalPrice $totalPrice;
  86.         return $this;
  87.     }
  88.     public function getProduct(): ?Product
  89.     {
  90.         return $this->product;
  91.     }
  92.     public function setProduct(?Product $product): self
  93.     {
  94.         $this->product $product;
  95.         return $this;
  96.     }
  97.     /**
  98.      * @return mixed
  99.      */
  100.     public function getUnitTransferCost()
  101.     {
  102.         return $this->unitTransferCost;
  103.     }
  104.     /**
  105.      * @param mixed $unitTransferCost
  106.      */
  107.     public function setUnitTransferCost($unitTransferCost): void
  108.     {
  109.         $this->unitTransferCost $unitTransferCost;
  110.     }
  111. }