Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
8 / 8 |
CRAP | |
100.00% |
14 / 14 |
ProductStock | |
100.00% |
1 / 1 |
|
100.00% |
14 / 14 |
14 | |
100.00% |
14 / 14 |
__clone | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getId | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setProductClassId | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
getProductClassId | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
setStock | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getStock | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setCreateDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getCreateDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
setUpdateDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getUpdateDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
setCreator | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getCreator | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
setProductClass | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getProductClass | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
<?php | |
namespace Eccube\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* ProductStock | |
*/ | |
class ProductStock extends \Eccube\Entity\AbstractEntity | |
{ | |
/** | |
* @var integer | |
*/ | |
private $id; | |
/** | |
* @var integer | |
*/ | |
private $product_class_id; | |
/** | |
* @var string | |
*/ | |
private $stock; | |
/** | |
* @var \DateTime | |
*/ | |
private $create_date; | |
/** | |
* @var \DateTime | |
*/ | |
private $update_date; | |
/** | |
* @var \Eccube\Entity\Member | |
*/ | |
private $Creator; | |
public function __clone() | |
{ | |
$this->id = null; | |
} | |
/** | |
* Get id | |
* | |
* @return integer | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* Set product_class_id | |
* | |
* @param integer $productClassId | |
* @return ProductStock | |
*/ | |
public function setProductClassId($productClassId) | |
{ | |
$this->product_class_id = $productClassId; | |
return $this; | |
} | |
/** | |
* Get product_class_id | |
* | |
* @return integer | |
*/ | |
public function getProductClassId() | |
{ | |
return $this->product_class_id; | |
} | |
/** | |
* Set stock | |
* | |
* @param string $stock | |
* @return ProductStock | |
*/ | |
public function setStock($stock) | |
{ | |
$this->stock = $stock; | |
return $this; | |
} | |
/** | |
* Get stock | |
* | |
* @return string | |
*/ | |
public function getStock() | |
{ | |
return $this->stock; | |
} | |
/** | |
* Set create_date | |
* | |
* @param \DateTime $createDate | |
* @return ProductStock | |
*/ | |
public function setCreateDate($createDate) | |
{ | |
$this->create_date = $createDate; | |
return $this; | |
} | |
/** | |
* Get create_date | |
* | |
* @return \DateTime | |
*/ | |
public function getCreateDate() | |
{ | |
return $this->create_date; | |
} | |
/** | |
* Set update_date | |
* | |
* @param \DateTime $updateDate | |
* @return ProductStock | |
*/ | |
public function setUpdateDate($updateDate) | |
{ | |
$this->update_date = $updateDate; | |
return $this; | |
} | |
/** | |
* Get update_date | |
* | |
* @return \DateTime | |
*/ | |
public function getUpdateDate() | |
{ | |
return $this->update_date; | |
} | |
/** | |
* Set Creator | |
* | |
* @param \Eccube\Entity\Member $creator | |
* @return ProductStock | |
*/ | |
public function setCreator(\Eccube\Entity\Member $creator) | |
{ | |
$this->Creator = $creator; | |
return $this; | |
} | |
/** | |
* Get Creator | |
* | |
* @return \Eccube\Entity\Member | |
*/ | |
public function getCreator() | |
{ | |
return $this->Creator; | |
} | |
/** | |
* @var \Eccube\Entity\ProductClass | |
*/ | |
private $ProductClass; | |
/** | |
* Set ProductClass | |
* | |
* @param \Eccube\Entity\ProductClass $productClass | |
* @return ProductStock | |
*/ | |
public function setProductClass(\Eccube\Entity\ProductClass $productClass = null) | |
{ | |
$this->ProductClass = $productClass; | |
return $this; | |
} | |
/** | |
* Get ProductClass | |
* | |
* @return \Eccube\Entity\ProductClass | |
*/ | |
public function getProductClass() | |
{ | |
return $this->ProductClass; | |
} | |
} |