src/Entity/System/FutureStock.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\System\FutureStockRepository")
  6.  *
  7.  * @ORM\Table(name="ps_future_stock")
  8.  */
  9. class FutureStock
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Id
  15.      *
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      *
  18.      * @ORM\Column(type="integer", name="id_future_stock")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var \DateTime|null
  23.      *
  24.      * @ORM\Column(type="datetime", nullable=true)
  25.      */
  26.     private $dateNext;
  27.     /**
  28.      * @var int
  29.      *
  30.      * @ORM\Column(type="integer", options={"default":0})
  31.      */
  32.     private $quantity;
  33.     /**
  34.      * @var int|null
  35.      *
  36.      * @ORM\Column(type="integer", length=11, nullable=true, name="id_purcharse_line")
  37.      */
  38.     private $purchaseLineId;
  39.     /**
  40.      * @var int
  41.      *
  42.      * @ORM\Column(type="integer", options={"default":0}, name="id_product", length=11)
  43.      */
  44.     private $productId;
  45.     /**
  46.      * @var int
  47.      *
  48.      * @ORM\Column(type="integer", options={"default":0}, name="id_product_attribute", length=11)
  49.      */
  50.     private $productAttributeId;
  51.     /**
  52.      * @var string|null
  53.      *
  54.      * @ORM\Column(type="string", nullable=true, options={"default":"0"}, length=50)
  55.      */
  56.     private $purchaseOrder;
  57.     /**
  58.      * @var bool|null
  59.      *
  60.      * @ORM\Column(type="boolean", nullable=true, options={"default":0}, columnDefinition="tinyint(1)")
  61.      */
  62.     private $purchaseConfirmed;
  63.     /**
  64.      * @var bool|null
  65.      *
  66.      * @ORM\Column(type="boolean", nullable=true, options={"default":0}, columnDefinition="tinyint(1)")
  67.      */
  68.     private $activeStock;
  69.     /**
  70.      * @var Product
  71.      *
  72.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Product", inversedBy="futureStocks")
  73.      *
  74.      * @ORM\JoinColumn(referencedColumnName="id_product", name="id_product")
  75.      */
  76.     private $product;
  77.     public function __construct()
  78.     {
  79.         $this->quantity 0;
  80.         $this->productId 0;
  81.         $this->productAttributeId 0;
  82.         $this->purchaseOrder '0';
  83.         $this->purchaseConfirmed 0;
  84.         $this->activeStock 0;
  85.     }
  86.     /**
  87.      * @return int
  88.      */
  89.     public function getId(): int
  90.     {
  91.         return $this->id;
  92.     }
  93.     /**
  94.      * @param int $id
  95.      *
  96.      * @return FutureStock
  97.      */
  98.     public function setId(int $id): FutureStock
  99.     {
  100.         $this->id $id;
  101.         return $this;
  102.     }
  103.     /**
  104.      * @return int
  105.      */
  106.     public function getQuantity(): int
  107.     {
  108.         return $this->quantity;
  109.     }
  110.     /**
  111.      * @param int $quantity
  112.      *
  113.      * @return FutureStock
  114.      */
  115.     public function setQuantity(int $quantity): FutureStock
  116.     {
  117.         $this->quantity $quantity;
  118.         return $this;
  119.     }
  120.     /**
  121.      * @return \DateTime|null
  122.      */
  123.     public function getDateNext(): ?\DateTime
  124.     {
  125.         return $this->dateNext;
  126.     }
  127.     /**
  128.      * @param \DateTime|null $dateNext
  129.      *
  130.      * @return FutureStock
  131.      */
  132.     public function setDateNext(?\DateTime $dateNext): FutureStock
  133.     {
  134.         $this->dateNext $dateNext;
  135.         return $this;
  136.     }
  137.     /**
  138.      * @return int|null
  139.      */
  140.     public function getPurchaseLineId(): ?int
  141.     {
  142.         return $this->purchaseLineId;
  143.     }
  144.     /**
  145.      * @param int|null $purchaseLineId
  146.      *
  147.      * @return FutureStock
  148.      */
  149.     public function setPurchaseLineId(?int $purchaseLineId): FutureStock
  150.     {
  151.         $this->purchaseLineId $purchaseLineId;
  152.         return $this;
  153.     }
  154.     /**
  155.      * @return int
  156.      */
  157.     public function getProductId(): int
  158.     {
  159.         return $this->productId;
  160.     }
  161.     /**
  162.      * @param int $productId
  163.      *
  164.      * @return FutureStock
  165.      */
  166.     public function setProductId(int $productId): FutureStock
  167.     {
  168.         $this->productId $productId;
  169.         return $this;
  170.     }
  171.     /**
  172.      * @return int
  173.      */
  174.     public function getProductAttributeId(): int
  175.     {
  176.         return $this->productAttributeId;
  177.     }
  178.     /**
  179.      * @param int $productAttributeId
  180.      *
  181.      * @return FutureStock
  182.      */
  183.     public function setProductAttributeId(int $productAttributeId): FutureStock
  184.     {
  185.         $this->productAttributeId $productAttributeId;
  186.         return $this;
  187.     }
  188.     /**
  189.      * @return string|null
  190.      */
  191.     public function getPurchaseOrder(): ?string
  192.     {
  193.         return $this->purchaseOrder;
  194.     }
  195.     /**
  196.      * @param string|null $purchaseOrder
  197.      *
  198.      * @return FutureStock
  199.      */
  200.     public function setPurchaseOrder(?string $purchaseOrder): FutureStock
  201.     {
  202.         $this->purchaseOrder $purchaseOrder;
  203.         return $this;
  204.     }
  205.     /**
  206.      * @return bool|null
  207.      */
  208.     public function getPurchaseConfirmed(): ?bool
  209.     {
  210.         return $this->purchaseConfirmed;
  211.     }
  212.     /**
  213.      * @param bool|null $purchaseConfirmed
  214.      *
  215.      * @return FutureStock
  216.      */
  217.     public function setPurchaseConfirmed(?bool $purchaseConfirmed): FutureStock
  218.     {
  219.         $this->purchaseConfirmed $purchaseConfirmed;
  220.         return $this;
  221.     }
  222.     /**
  223.      * @return bool|null
  224.      */
  225.     public function getActiveStock(): ?bool
  226.     {
  227.         return $this->activeStock;
  228.     }
  229.     /**
  230.      * @param bool|null $activeStock
  231.      *
  232.      * @return FutureStock
  233.      */
  234.     public function setActiveStock(?bool $activeStock): FutureStock
  235.     {
  236.         $this->activeStock $activeStock;
  237.         return $this;
  238.     }
  239. }