<?php
namespace App\Entity;
use App\Repository\StockTransferProductsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: StockTransferProductsRepository::class)]
class StockTransferProducts extends BaseEntity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'float', nullable: false)]
private $quantity;
#[ORM\Column(name: 'price_fob', type: 'decimal', precision: 19, scale: 4, nullable: true)]
private $priceFob;
#[ORM\Column(name: 'price_navlun', type: 'decimal', precision: 19, scale: 4, nullable: true)]
private $priceNavlun;
#[ORM\Column(name: 'total_unit_price', type: 'decimal', precision: 19, scale: 4, nullable: true)]
private $totalUnitPrice;
#[ORM\Column(name: 'total_price', type: 'decimal', precision: 19, scale: 4, nullable: true)]
private $totalPrice;
#[ORM\ManyToOne(targetEntity: StockTransfer::class, inversedBy: 'products')]
private $stockTransfer;
#[ORM\ManyToOne(targetEntity: Product::class, inversedBy: 'stockTransferProducts')]
private $product;
#[ORM\Column(name: 'unitTransferCost', type: 'decimal', precision: 19, scale: 4, nullable: true)]
private $unitTransferCost;
public function getId(): ?int
{
return $this->id;
}
public function getStockTransfer(): ?StockTransfer
{
return $this->stockTransfer;
}
public function setStockTransfer(?StockTransfer $stockTransfer): self
{
$this->stockTransfer = $stockTransfer;
return $this;
}
public function getQuantity()
{
return $this->quantity;
}
public function setQuantity($quantity)
{
$this->quantity = $quantity;
return $this;
}
public function getPriceFob()
{
return $this->priceFob;
}
public function setPriceFob($priceFob): self
{
$this->priceFob = $priceFob;
return $this;
}
public function getPriceNavlun()
{
return $this->priceNavlun;
}
public function setPriceNavlun($priceNavlun): self
{
$this->priceNavlun = $priceNavlun;
return $this;
}
public function getTotalUnitPrice()
{
return $this->totalUnitPrice;
}
public function setTotalUnitPrice($totalUnitPrice): self
{
$this->totalUnitPrice = $totalUnitPrice;
return $this;
}
public function getTotalPrice()
{
return $this->totalPrice;
}
public function setTotalPrice($totalPrice): self
{
$this->totalPrice = $totalPrice;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
/**
* @return mixed
*/
public function getUnitTransferCost()
{
return $this->unitTransferCost;
}
/**
* @param mixed $unitTransferCost
*/
public function setUnitTransferCost($unitTransferCost): void
{
$this->unitTransferCost = $unitTransferCost;
}
}