<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\System\FutureStockRepository")
*
* @ORM\Table(name="ps_future_stock")
*/
class FutureStock
{
/**
* @var int
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id_future_stock")
*/
private $id;
/**
* @var \DateTime|null
*
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateNext;
/**
* @var int
*
* @ORM\Column(type="integer", options={"default":0})
*/
private $quantity;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=11, nullable=true, name="id_purcharse_line")
*/
private $purchaseLineId;
/**
* @var int
*
* @ORM\Column(type="integer", options={"default":0}, name="id_product", length=11)
*/
private $productId;
/**
* @var int
*
* @ORM\Column(type="integer", options={"default":0}, name="id_product_attribute", length=11)
*/
private $productAttributeId;
/**
* @var string|null
*
* @ORM\Column(type="string", nullable=true, options={"default":"0"}, length=50)
*/
private $purchaseOrder;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", nullable=true, options={"default":0}, columnDefinition="tinyint(1)")
*/
private $purchaseConfirmed;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", nullable=true, options={"default":0}, columnDefinition="tinyint(1)")
*/
private $activeStock;
/**
* @var Product
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Product", inversedBy="futureStocks")
*
* @ORM\JoinColumn(referencedColumnName="id_product", name="id_product")
*/
private $product;
public function __construct()
{
$this->quantity = 0;
$this->productId = 0;
$this->productAttributeId = 0;
$this->purchaseOrder = '0';
$this->purchaseConfirmed = 0;
$this->activeStock = 0;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*
* @return FutureStock
*/
public function setId(int $id): FutureStock
{
$this->id = $id;
return $this;
}
/**
* @return int
*/
public function getQuantity(): int
{
return $this->quantity;
}
/**
* @param int $quantity
*
* @return FutureStock
*/
public function setQuantity(int $quantity): FutureStock
{
$this->quantity = $quantity;
return $this;
}
/**
* @return \DateTime|null
*/
public function getDateNext(): ?\DateTime
{
return $this->dateNext;
}
/**
* @param \DateTime|null $dateNext
*
* @return FutureStock
*/
public function setDateNext(?\DateTime $dateNext): FutureStock
{
$this->dateNext = $dateNext;
return $this;
}
/**
* @return int|null
*/
public function getPurchaseLineId(): ?int
{
return $this->purchaseLineId;
}
/**
* @param int|null $purchaseLineId
*
* @return FutureStock
*/
public function setPurchaseLineId(?int $purchaseLineId): FutureStock
{
$this->purchaseLineId = $purchaseLineId;
return $this;
}
/**
* @return int
*/
public function getProductId(): int
{
return $this->productId;
}
/**
* @param int $productId
*
* @return FutureStock
*/
public function setProductId(int $productId): FutureStock
{
$this->productId = $productId;
return $this;
}
/**
* @return int
*/
public function getProductAttributeId(): int
{
return $this->productAttributeId;
}
/**
* @param int $productAttributeId
*
* @return FutureStock
*/
public function setProductAttributeId(int $productAttributeId): FutureStock
{
$this->productAttributeId = $productAttributeId;
return $this;
}
/**
* @return string|null
*/
public function getPurchaseOrder(): ?string
{
return $this->purchaseOrder;
}
/**
* @param string|null $purchaseOrder
*
* @return FutureStock
*/
public function setPurchaseOrder(?string $purchaseOrder): FutureStock
{
$this->purchaseOrder = $purchaseOrder;
return $this;
}
/**
* @return bool|null
*/
public function getPurchaseConfirmed(): ?bool
{
return $this->purchaseConfirmed;
}
/**
* @param bool|null $purchaseConfirmed
*
* @return FutureStock
*/
public function setPurchaseConfirmed(?bool $purchaseConfirmed): FutureStock
{
$this->purchaseConfirmed = $purchaseConfirmed;
return $this;
}
/**
* @return bool|null
*/
public function getActiveStock(): ?bool
{
return $this->activeStock;
}
/**
* @param bool|null $activeStock
*
* @return FutureStock
*/
public function setActiveStock(?bool $activeStock): FutureStock
{
$this->activeStock = $activeStock;
return $this;
}
}