<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* OrderDetailStock
*
* @ORM\Table(name="ps_order_detail_stock", indexes={
*
* @ORM\Index(name="ps_orders_detail_stock_id_order_reference_index", columns={"id_order", "product_reference"})
* })
*
* @ORM\Entity(repositoryClass="App\Repository\System\OrderDetailStockRepository")
*/
class OrderDetailStock
{
/**
* @ORM\Id()
*
* @var Order
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Order", inversedBy="orderDetails")
*
* @ORM\JoinColumn(name="id_order", referencedColumnName="id_order")
*/
private $order;
/**
* @ORM\Id()
*
* @var string|null
*
* @ORM\Column(type="string", length=30, nullable=true)
*/
private $productReference;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=10, options={"default" : 0}, nullable=true)
*/
private $quantityWarehouse;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=10, options={"default" : 0}, nullable=true)
*/
private $quantitySupplier;
/**
* @var int|null
*
* @ORM\Column(name="quantity_supplier_3_5", type="integer", length=10, options={"default" : 0}, nullable=true)
*/
private $quantitySupplier3To5;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=10, options={"default" : 0}, nullable=true)
*/
private $quantityComing;
/**
* @var bool
*
* @ORM\Column(type="boolean", length=1, options={"default" : 0}, nullable=true)
*/
private $stockReturned;
/**
* @return Order
*/
public function getOrder(): Order
{
return $this->order;
}
/**
* @return string|null
*/
public function getProductReference(): ?string
{
return $this->productReference;
}
/**
* @return int|null
*/
public function getQuantityWarehouse(): ?int
{
return $this->quantityWarehouse;
}
/**
* @return int|null
*/
public function getQuantitySupplier(): ?int
{
return $this->quantitySupplier;
}
/**
* @param Order $order
*
* @return OrderDetailStock
*/
public function setOrder(Order $order): OrderDetailStock
{
$this->order = $order;
return $this;
}
/**
* @param string|null $productReference
*
* @return OrderDetailStock
*/
public function setProductReference(?string $productReference): OrderDetailStock
{
$this->productReference = $productReference;
return $this;
}
/**
* @param int|null $quantityWarehouse
*
* @return OrderDetailStock
*/
public function setQuantityWarehouse(?int $quantityWarehouse): OrderDetailStock
{
$this->quantityWarehouse = $quantityWarehouse;
return $this;
}
/**
* @param int|null $quantitySupplier
*
* @return OrderDetailStock
*/
public function setQuantitySupplier(?int $quantitySupplier): OrderDetailStock
{
$this->quantitySupplier = $quantitySupplier;
return $this;
}
/**
* @return bool
*/
public function isStockReturned(): bool
{
return $this->stockReturned;
}
/**
* @param bool $stockReturned
*
* @return OrderDetailStock
*/
public function setStockReturned(bool $stockReturned): OrderDetailStock
{
$this->stockReturned = $stockReturned;
return $this;
}
/**
* @param int|null $quantityComing
*/
public function setQuantityComing(?int $quantityComing): void
{
$this->quantityComing = $quantityComing;
}
/**
* @return int|null
*/
public function getQuantityComing(): ?int
{
return $this->quantityComing;
}
/**
* @return int|null
*/
public function getQuantitySupplier3To5(): ?int
{
return $this->quantitySupplier3To5;
}
/**
* @param int|null $quantitySupplier3To5
*/
public function setQuantitySupplier3To5(?int $quantitySupplier3To5): void
{
$this->quantitySupplier3To5 = $quantitySupplier3To5;
}
}