app/Customize/Entity/RelatedProductSetting.php line 14

Open in your IDE?
  1. <?php
  2. namespace Customize\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Eccube\Annotation\EntityExtension;
  5. /**
  6.  * 関連商品設定エンティティ
  7.  *
  8.  * @ORM\Table(name="dtb_related_product_setting")
  9.  * @ORM\Entity(repositoryClass="Customize\Repository\RelatedProductSettingRepository")
  10.  */
  11. class RelatedProductSetting
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="product_id", type="integer")
  25.      */
  26.     private $product_id;
  27.     /**
  28.      * @var int
  29.      *
  30.      * @ORM\Column(name="sort_no", type="integer")
  31.      */
  32.     private $sort_no;
  33.     /**
  34.      * @var \DateTime
  35.      *
  36.      * @ORM\Column(name="create_date", type="datetime")
  37.      */
  38.     private $create_date;
  39.     /**
  40.      * @return int
  41.      */
  42.     public function getId()
  43.     {
  44.         return $this->id;
  45.     }
  46.     /**
  47.      * @param int $id
  48.      *
  49.      * @return RelatedProductSetting
  50.      */
  51.     public function setId($id)
  52.     {
  53.         $this->id $id;
  54.         return $this;
  55.     }
  56.     /**
  57.      * @return int
  58.      */
  59.     public function getProductId()
  60.     {
  61.         return $this->product_id;
  62.     }
  63.     /**
  64.      * @param int $product_id
  65.      *
  66.      * @return RelatedProductSetting
  67.      */
  68.     public function setProductId($product_id)
  69.     {
  70.         $this->product_id $product_id;
  71.         return $this;
  72.     }
  73.     /**
  74.      * @return int
  75.      */
  76.     public function getSortNo()
  77.     {
  78.         return $this->sort_no;
  79.     }
  80.     /**
  81.      * @param int $sort_no
  82.      *
  83.      * @return RelatedProductSetting
  84.      */
  85.     public function setSortNo($sort_no)
  86.     {
  87.         $this->sort_no $sort_no;
  88.         return $this;
  89.     }
  90.     /**
  91.      * @return \DateTime
  92.      */
  93.     public function getCreateDate()
  94.     {
  95.         return $this->create_date;
  96.     }
  97.     /**
  98.      * @param \DateTime $create_date
  99.      *
  100.      * @return RelatedProductSetting
  101.      */
  102.     public function setCreateDate($create_date)
  103.     {
  104.         $this->create_date $create_date;
  105.         return $this;
  106.     }
  107. }