Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
7 / 7 |
CRAP | |
100.00% |
12 / 12 |
| ProductImage | |
100.00% |
1 / 1 |
|
100.00% |
12 / 12 |
12 | |
100.00% |
12 / 12 |
| __toString | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getId | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
| setFileName | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getFileName | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setRank | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getRank | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
| setCreateDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getCreateDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
| setProduct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getProduct | |
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 |
|||
| <?php | |
| namespace Eccube\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * ProductImage | |
| */ | |
| class ProductImage extends \Eccube\Entity\AbstractEntity | |
| { | |
| /** | |
| * @return string | |
| */ | |
| public function __toString() | |
| { | |
| return $this->getFileName(); | |
| } | |
| /** | |
| * @var integer | |
| */ | |
| private $id; | |
| /** | |
| * @var string | |
| */ | |
| private $file_name; | |
| /** | |
| * @var integer | |
| */ | |
| private $rank; | |
| /** | |
| * @var \DateTime | |
| */ | |
| private $create_date; | |
| /** | |
| * @var \Eccube\Entity\Product | |
| */ | |
| private $Product; | |
| /** | |
| * @var \Eccube\Entity\Member | |
| */ | |
| private $Creator; | |
| /** | |
| * Get id | |
| * | |
| * @return integer | |
| */ | |
| public function getId() | |
| { | |
| return $this->id; | |
| } | |
| /** | |
| * Set file_name | |
| * | |
| * @param string $fileName | |
| * @return ProductImage | |
| */ | |
| public function setFileName($fileName) | |
| { | |
| $this->file_name = $fileName; | |
| return $this; | |
| } | |
| /** | |
| * Get file_name | |
| * | |
| * @return string | |
| */ | |
| public function getFileName() | |
| { | |
| return $this->file_name; | |
| } | |
| /** | |
| * Set rank | |
| * | |
| * @param integer $rank | |
| * @return ProductImage | |
| */ | |
| public function setRank($rank) | |
| { | |
| $this->rank = $rank; | |
| return $this; | |
| } | |
| /** | |
| * Get rank | |
| * | |
| * @return integer | |
| */ | |
| public function getRank() | |
| { | |
| return $this->rank; | |
| } | |
| /** | |
| * Set create_date | |
| * | |
| * @param \DateTime $createDate | |
| * @return ProductImage | |
| */ | |
| public function setCreateDate($createDate) | |
| { | |
| $this->create_date = $createDate; | |
| return $this; | |
| } | |
| /** | |
| * Get create_date | |
| * | |
| * @return \DateTime | |
| */ | |
| public function getCreateDate() | |
| { | |
| return $this->create_date; | |
| } | |
| /** | |
| * Set Product | |
| * | |
| * @param \Eccube\Entity\Product $product | |
| * @return ProductImage | |
| */ | |
| public function setProduct(\Eccube\Entity\Product $product) | |
| { | |
| $this->Product = $product; | |
| return $this; | |
| } | |
| /** | |
| * Get Product | |
| * | |
| * @return \Eccube\Entity\Product | |
| */ | |
| public function getProduct() | |
| { | |
| return $this->Product; | |
| } | |
| /** | |
| * Set Creator | |
| * | |
| * @param \Eccube\Entity\Member $creator | |
| * @return ProductImage | |
| */ | |
| public function setCreator(\Eccube\Entity\Member $creator) | |
| { | |
| $this->Creator = $creator; | |
| return $this; | |
| } | |
| /** | |
| * Get Creator | |
| * | |
| * @return \Eccube\Entity\Member | |
| */ | |
| public function getCreator() | |
| { | |
| return $this->Creator; | |
| } | |
| } |