<?php
namespace App\AtechNet\CoreBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\OneToMany;
use Doctrine\ORM\Mapping\Table as Table;
/**
* Stock review counts
*
* @Table(name="stock_review_counts")
* @Entity
*/
class StockReviewCount extends AbstractSignedEntity
{
public function __construct()
{
parent::__construct();
$this->stockReviewStockItems = new ArrayCollection();
}
/**
* @var StockReview
*
* @ManyToOne(targetEntity="App\AtechNet\CoreBundle\Entity\StockReview", inversedBy="stockReviewCounts")
* @JoinColumn(name="stock_review_id", referencedColumnName="id")
*/
private $stockReview;
/**
* @var Product
*
* @ManyToOne(targetEntity="App\AtechNet\CoreBundle\Entity\Product")
* @JoinColumn(name="product_id", referencedColumnName="id", nullable=true)
*/
private $product;
/**
* @var StockItem
*
* @OneToMany(targetEntity="App\AtechNet\CoreBundle\Entity\StockReviewStockItem", mappedBy="stockReviewCount", cascade={"persist", "remove"})
*/
private $stockReviewStockItems;
/**
* @var int
*
* @Column(name="manual_count", type="integer", nullable=true)
*/
private $manualCount = 0;
/**
* @var int
*
* @Column(name="auto_count", type="integer", nullable=true)
*/
private $autoCount = 0;
/**
* @var int
*
* @Column(name="actual_manual_count", type="integer")
*/
private $actualManualCount = 0;
public function getStockReview()
{
return $this->stockReview;
}
public function setStockReview(StockReview $stockReview)
{
$this->stockReview = $stockReview;
return $this;
}
public function getProduct()
{
return $this->product;
}
public function setProduct(Product $product)
{
$this->product = $product;
return $this;
}
public function getStockReviewStockItems()
{
return $this->stockReviewStockItems;
}
public function setStockReviewStockItems(StockItem $stockReviewStockItems)
{
$this->stockReviewStockItems = $stockReviewStockItems;
return $this;
}
public function getManualCount()
{
return $this->manualCount;
}
public function setManualCount($manualCount)
{
$this->manualCount = $manualCount;
return $this;
}
public function getAutoCount()
{
return $this->autoCount;
}
public function setAutoCount($autoCount)
{
$this->autoCount = $autoCount;
return $this;
}
public function getActualManualCount()
{
return $this->actualManualCount;
}
public function setActualManualCount($actualManualCount)
{
$this->actualManualCount = $actualManualCount;
return $this;
}
}