app/Plugin/ProductReview42/Entity/ProductReviewConfig.php line 26

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Plugin\ProductReview42\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Eccube\Entity\AbstractEntity;
  15. use Eccube\Entity\Master\CsvType;
  16. /**
  17.  * ProductReviewConfig
  18.  *
  19.  * @ORM\Table(name="plg_product_review_config")
  20.  * @ORM\Entity(repositoryClass="Plugin\ProductReview42\Repository\ProductReviewConfigRepository")
  21.  */
  22. class ProductReviewConfig extends AbstractEntity
  23. {
  24.     /**
  25.      * @var int
  26.      *
  27.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="IDENTITY")
  30.      */
  31.     private $id;
  32.     /**
  33.      * @var int
  34.      *
  35.      * @ORM\Column(name="review_max", type="smallint", nullable=true, options={"unsigned":true, "default":5})
  36.      */
  37.     private $review_max;
  38.     /**
  39.      * @var \Eccube\Entity\Master\CsvType
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\CsvType")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="csv_type_id", nullable=true, referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $CsvType;
  47.     /**
  48.      * @var \DateTime
  49.      *
  50.      * @ORM\Column(name="create_date", type="datetimetz")
  51.      */
  52.     private $create_date;
  53.     /**
  54.      * @var \DateTime
  55.      *
  56.      * @ORM\Column(name="update_date", type="datetimetz")
  57.      */
  58.     private $update_date;
  59.     /**
  60.      * Set product_review config id.
  61.      *
  62.      * @param string $id
  63.      *
  64.      * @return ProductReviewConfig
  65.      */
  66.     public function setId($id)
  67.     {
  68.         $this->id $id;
  69.         return $this;
  70.     }
  71.     /**
  72.      * Get id.
  73.      *
  74.      * @return int
  75.      */
  76.     public function getId()
  77.     {
  78.         return $this->id;
  79.     }
  80.     /**
  81.      * Get ReviewMax.
  82.      *
  83.      * @return int
  84.      */
  85.     public function getReviewMax()
  86.     {
  87.         return $this->review_max;
  88.     }
  89.     /**
  90.      * Set max.
  91.      *
  92.      * @param int $max
  93.      *
  94.      * @return ProductReview
  95.      */
  96.     public function setReviewMax($max)
  97.     {
  98.         $this->review_max $max;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get CsvType
  103.      *
  104.      * @return \Eccube\Entity\Master\CsvType
  105.      */
  106.     public function getCsvType()
  107.     {
  108.         return $this->CsvType;
  109.     }
  110.     /**
  111.      * Set CsvType
  112.      *
  113.      * @param CsvType $CsvType
  114.      *
  115.      * @return $this
  116.      */
  117.     public function setCsvType(CsvType $CsvType null)
  118.     {
  119.         $this->CsvType $CsvType;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Set create_date.
  124.      *
  125.      * @param \DateTime $createDate
  126.      *
  127.      * @return $this
  128.      */
  129.     public function setCreateDate($createDate)
  130.     {
  131.         $this->create_date $createDate;
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get create_date.
  136.      *
  137.      * @return \DateTime
  138.      */
  139.     public function getCreateDate()
  140.     {
  141.         return $this->create_date;
  142.     }
  143.     /**
  144.      * Set update_date.
  145.      *
  146.      * @param \DateTime $updateDate
  147.      *
  148.      * @return $this
  149.      */
  150.     public function setUpdateDate($updateDate)
  151.     {
  152.         $this->update_date $updateDate;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get update_date.
  157.      *
  158.      * @return \DateTime
  159.      */
  160.     public function getUpdateDate()
  161.     {
  162.         return $this->update_date;
  163.     }
  164. }