src/AtechNet/CoreBundle/Entity/StockReviewStockItem.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\AtechNet\CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping\Column;
  4. use Doctrine\ORM\Mapping\Entity;
  5. use Doctrine\ORM\Mapping\JoinColumn;
  6. use Doctrine\ORM\Mapping\ManyToOne;
  7. use Doctrine\ORM\Mapping\Table as Table;
  8. /**
  9.  * Stock review stock items
  10.  *
  11.  * @Table(name="stock_review_stock_items")
  12.  * @Entity
  13.  */
  14. class StockReviewStockItem extends AbstractSignedEntity
  15. {
  16.     /**
  17.      * @var StockReviewCount
  18.      *
  19.      * @ManyToOne(targetEntity="App\AtechNet\CoreBundle\Entity\StockReviewCount", inversedBy="stockReviewStockItems")
  20.      * @JoinColumn(name="stock_review_count_id", referencedColumnName="id")
  21.      */
  22.     private $stockReviewCount;
  23.     /**
  24.      * @var StockItem
  25.      *
  26.      * @ManyToOne(targetEntity="App\AtechNet\CoreBundle\Entity\StockItem")
  27.      * @JoinColumn(name="stock_item_id", referencedColumnName="id", nullable=true)
  28.      */
  29.     private $stockItem;
  30.     /**
  31.      * @var int
  32.      *
  33.      * @Column(name="scanned", type="boolean")
  34.      */
  35.     private $scanned = false;
  36.     /**
  37.      * @var int
  38.      *
  39.      * @Column(name="excess", type="boolean")
  40.      */
  41.     private $excess = false;
  42.     public function getStockReviewCount()
  43.     {
  44.         return $this->stockReviewCount;
  45.     }
  46.     public function setStockReviewCount(StockReviewCount $stockReviewCount)
  47.     {
  48.         $this->stockReviewCount = $stockReviewCount;
  49.         return $this;
  50.     }
  51.     public function getStockItem()
  52.     {
  53.         return $this->stockItem;
  54.     }
  55.     public function setStockItem(StockItem $stockItem)
  56.     {
  57.         $this->stockItem = $stockItem;
  58.         return $this;
  59.     }
  60.     public function getScanned()
  61.     {
  62.         return $this->scanned;
  63.     }
  64.     public function setScanned($scanned)
  65.     {
  66.         $this->scanned = $scanned;
  67.         return $this;
  68.     }
  69.     public function getExcess()
  70.     {
  71.         return $this->excess;
  72.     }
  73.     public function setExcess($excess)
  74.     {
  75.         $this->excess = $excess;
  76.         return $this;
  77.     }
  78. }