app/Plugin/CustomerRank42/Entity/CustomerRank.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3. * Plugin Name : CustomerRank
  4. *
  5. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  6. * http://www.bratech.co.jp/
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Plugin\CustomerRank42\Entity;
  12. use Doctrine\ORM\Mapping as ORM;
  13. /**
  14.  * CustomerRank
  15.  *
  16.  * @ORM\Table(name="plg_customerrank_dtb_customer_rank")
  17.  * @ORM\InheritanceType("SINGLE_TABLE")
  18.  * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  19.  * @ORM\HasLifecycleCallbacks()
  20.  * @ORM\Entity(repositoryClass="Plugin\CustomerRank42\Repository\CustomerRankRepository")
  21.  */
  22. class CustomerRank extends \Eccube\Entity\AbstractEntity
  23. {
  24.     const ENABLED 1;
  25.     const DISABLED 0;
  26.     /**
  27.      * @var int
  28.      *
  29.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  30.      * @ORM\Id
  31.      * @ORM\GeneratedValue(strategy="IDENTITY")
  32.      */
  33.     private $id;
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="name", type="string", length=255, nullable=false)
  38.      */
  39.     private $name;
  40.     /**
  41.      * @var int|null
  42.      *
  43.      * @ORM\Column(name="discount_rate", type="decimal", precision=5, scale=2, nullable=true)
  44.      */
  45.     private $discount_rate;
  46.     /**
  47.      * @var string|null
  48.      *
  49.      * @ORM\Column(name="discount_value", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true})
  50.      */
  51.     private $discount_value;
  52.     /**
  53.      * @var int|null
  54.      *
  55.      * @ORM\Column(name="point_rate", type="decimal", precision=5, scale=2, nullable=true)
  56.      */
  57.     private $point_rate;
  58.     /**
  59.      * @var string|null
  60.      *
  61.      * @ORM\Column(name="delivery_free_condition", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true})
  62.      */
  63.     private $delivery_free_condition;
  64.     /**
  65.      * @var string|null
  66.      *
  67.      * @ORM\Column(name="cond_amount", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true})
  68.      */
  69.     private $cond_amount;
  70.     /**
  71.      * @var int|null
  72.      *
  73.      * @ORM\Column(name="cond_buytimes", type="integer", nullable=true)
  74.      */
  75.     private $cond_buytimes;
  76.     /**
  77.      * @var boolean|null
  78.      *
  79.      * @ORM\Column(name="initial_flg", type="boolean", nullable=true)
  80.      */
  81.     private $initial_flg;
  82.     /**
  83.      * @var boolean|null
  84.      *
  85.      * @ORM\Column(name="fixed_flg", type="boolean", nullable=true)
  86.      */
  87.     private $fixed_flg;
  88.     /**
  89.      * @var int
  90.      *
  91.      * @ORM\Column(name="priority", type="integer")
  92.      */
  93.     private $priority;
  94.     /**
  95.      * @var int|null
  96.      *
  97.      * @ORM\Column(name="extension_period", type="integer", nullable=true)
  98.      */
  99.     private $extension_period;
  100.     /**
  101.      * @var \DateTime
  102.      *
  103.      * @ORM\Column(name="create_date", type="datetimetz")
  104.      */
  105.     private $create_date;
  106.     /**
  107.      * @var \DateTime
  108.      *
  109.      * @ORM\Column(name="update_date", type="datetimetz")
  110.      */
  111.     private $update_date;
  112.     /**
  113.      * @return string
  114.      */
  115.     public function __toString()
  116.     {
  117.         return (string) $this->getName();
  118.     }
  119.     public function getId()
  120.     {
  121.         return $this->id;
  122.     }
  123.     public function setName($name)
  124.     {
  125.         $this->name $name;
  126.         return $this;
  127.     }
  128.     public function getName()
  129.     {
  130.         return $this->name;
  131.     }
  132.     public function setDiscountRate($discountRate)
  133.     {
  134.         $this->discount_rate $discountRate;
  135.         return $this;
  136.     }
  137.     public function getDiscountRate()
  138.     {
  139.         return $this->discount_rate;
  140.     }
  141.     public function setDiscountValue($discountValue)
  142.     {
  143.         $this->discount_value $discountValue;
  144.         return $this;
  145.     }
  146.     public function getDiscountValue()
  147.     {
  148.         return $this->discount_value;
  149.     }
  150.     public function setPointRate($pointRate)
  151.     {
  152.         $this->point_rate $pointRate;
  153.         return $this;
  154.     }
  155.     public function getPointRate()
  156.     {
  157.         return $this->point_rate;
  158.     }
  159.     public function setDeliveryFreeCondition($deliveryFreeCondition)
  160.     {
  161.         $this->delivery_free_condition $deliveryFreeCondition;
  162.         return $this;
  163.     }
  164.     public function getDeliveryFreeCondition()
  165.     {
  166.         return $this->delivery_free_condition;
  167.     }
  168.     public function setCondAmount($condAmount)
  169.     {
  170.         $this->cond_amount $condAmount;
  171.         return $this;
  172.     }
  173.     public function getCondAmount()
  174.     {
  175.         return $this->cond_amount;
  176.     }
  177.     public function setCondBuytimes($condBuytimes)
  178.     {
  179.         $this->cond_buytimes $condBuytimes;
  180.         return $this;
  181.     }
  182.     public function getCondBuytimes()
  183.     {
  184.         return $this->cond_buytimes;
  185.     }
  186.     public function setInitialFlg($initialFlg)
  187.     {
  188.         $this->initial_flg $initialFlg;
  189.         return $this;
  190.     }
  191.     public function getInitialFlg()
  192.     {
  193.         return $this->initial_flg;
  194.     }
  195.     public function setFixedFlg($fixedFlg)
  196.     {
  197.         $this->fixed_flg $fixedFlg;
  198.         return $this;
  199.     }
  200.     public function getFixedFlg()
  201.     {
  202.         return $this->fixed_flg;
  203.     }
  204.     public function setPriority($priority)
  205.     {
  206.         $this->priority $priority;
  207.         return $this;
  208.     }
  209.     public function getPriority()
  210.     {
  211.         return $this->priority;
  212.     }
  213.     public function setExtensionPeriod($period)
  214.     {
  215.         $this->extension_period $period;
  216.         return $this;
  217.     }
  218.     public function getExtensionPeriod()
  219.     {
  220.         return $this->extension_period;
  221.     }
  222.     public function setCreateDate($date)
  223.     {
  224.         $this->create_date $date;
  225.         return $this;
  226.     }
  227.     public function getCreateDate()
  228.     {
  229.         return $this->create_date;
  230.     }
  231.     public function setUpdateDate($date)
  232.     {
  233.         $this->update_date $date;
  234.         return $this;
  235.     }
  236.     public function getUpdateDate()
  237.     {
  238.         return $this->update_date;
  239.     }
  240. }