app/Plugin/ApexOrderItemOption/Entity/OptionCategory.php line 16

Open in your IDE?
  1. <?php
  2. namespace Plugin\ApexOrderItemOption\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * OptionCategory
  6.  *
  7.  * @ORM\Table(name="plg_aoio_option_category")
  8.  * @ORM\InheritanceType("SINGLE_TABLE")
  9.  * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  10.  * @ORM\HasLifecycleCallbacks()
  11.  * @ORM\Entity(repositoryClass="Plugin\ApexOrderItemOption\Repository\OptionCategoryRepository")
  12.  */
  13. class OptionCategory extends \Eccube\Entity\AbstractEntity
  14. {
  15.     const ON 1;
  16.     const OFF 0;
  17.     private $label;
  18.     public function setLabel($label)
  19.     {
  20.         $this->label $label;
  21.         return $this;
  22.     }
  23.     public function getLabel()
  24.     {
  25.         return $this->label;
  26.     }
  27.     /**
  28.      * @var int
  29.      *
  30.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  31.      * @ORM\Id
  32.      * @ORM\GeneratedValue(strategy="IDENTITY")
  33.      */
  34.     private $id;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="name", type="string", length=255, nullable=true)
  39.      */
  40.     private $name;
  41.     /**
  42.      * @var string|null
  43.      *
  44.      * @ORM\Column(name="description", type="string", length=4000, nullable=true)
  45.      */
  46.     private $description;
  47.     /**
  48.      * @var boolean|null
  49.      *
  50.      * @ORM\Column(name="disable_flg", type="boolean", nullable=true)
  51.      */
  52.     private $disable_flg;
  53.     /**
  54.      * @var boolean|null
  55.      *
  56.      * @ORM\Column(name="init_flg", type="boolean", nullable=true)
  57.      */
  58.     private $init_flg;
  59.     /**
  60.      * @var boolean|null
  61.      *
  62.      * @ORM\Column(name="hidden_flg", type="boolean", nullable=true)
  63.      */
  64.     private $hidden_flg;
  65.     /**
  66.      * @var string|null
  67.      *
  68.      * @ORM\Column(name="value", type="decimal", precision=12, scale=2, nullable=true)
  69.      */
  70.     private $value;
  71.     /**
  72.      * @var int|null
  73.      *
  74.      * @ORM\Column(name="multiple_flg", type="smallint", nullable=true)
  75.      */
  76.     private $multiple_flg;
  77.     /**
  78.      * @var string|null
  79.      *
  80.      * @ORM\Column(name="weight", type="decimal", precision=12, scale=2, nullable=true)
  81.      */
  82.     private $weight;
  83.     /**
  84.      * @var string|null
  85.      *
  86.      * @ORM\Column(name="size", type="decimal", precision=12, scale=2, nullable=true)
  87.      */
  88.     private $size;
  89.     /**
  90.      * @var int
  91.      *
  92.      * @ORM\Column(name="sort_no", type="integer")
  93.      */
  94.     private $sort_no;
  95.     /**
  96.      * @var \DateTime
  97.      *
  98.      * @ORM\Column(name="create_date", type="datetimetz")
  99.      */
  100.     private $create_date;
  101.     /**
  102.      * @var \DateTime
  103.      *
  104.      * @ORM\Column(name="update_date", type="datetimetz")
  105.      */
  106.     private $update_date;
  107.     /**
  108.      * @var \Plugin\ApexOrderItemOption\Entity\Option
  109.      *
  110.      * @ORM\ManyToOne(targetEntity="Plugin\ApexOrderItemOption\Entity\Option", inversedBy="OptionCategories")
  111.      * @ORM\JoinColumns({
  112.      *   @ORM\JoinColumn(name="option_id", referencedColumnName="id")
  113.      * })
  114.      */
  115.     private $Option;
  116.     /**
  117.      * @var \Eccube\Entity\Member
  118.      *
  119.      * @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
  120.      * @ORM\JoinColumns({
  121.      *   @ORM\JoinColumn(name="creator_id", referencedColumnName="id")
  122.      * })
  123.      */
  124.     private $Creator;
  125.     public function __toString()
  126.     {
  127.         return $this->getName();
  128.     }
  129.     public function getId()
  130.     {
  131.         return $this->id;
  132.     }
  133.     public function setName($name)
  134.     {
  135.         $this->name $name;
  136.         return $this;
  137.     }
  138.     public function getName()
  139.     {
  140.         return $this->name;
  141.     }
  142.     public function setDescription($description)
  143.     {
  144.         $this->description $description;
  145.         return $this;
  146.     }
  147.     public function getDescription()
  148.     {
  149.         return $this->description;
  150.     }
  151.     public function setCreateDate($date)
  152.     {
  153.         $this->create_date $date;
  154.         return $this;
  155.     }
  156.     public function getCreateDate()
  157.     {
  158.         return $this->create_date;
  159.     }
  160.     public function setUpdateDate($date)
  161.     {
  162.         $this->update_date $date;
  163.         return $this;
  164.     }
  165.     public function getUpdateDate()
  166.     {
  167.         return $this->update_date;
  168.     }
  169.     public function setWeight($weight)
  170.     {
  171.         $this->weight $weight;
  172.         return $this;
  173.     }
  174.     public function getWeight()
  175.     {
  176.         return $this->weight;
  177.     }
  178.     public function setSize($size)
  179.     {
  180.         $this->size $size;
  181.         return $this;
  182.     }
  183.     public function getSize()
  184.     {
  185.         return $this->size;
  186.     }
  187.     public function setSortNo($sortNo)
  188.     {
  189.         $this->sort_no $sortNo;
  190.         return $this;
  191.     }
  192.     public function getSortNo()
  193.     {
  194.         return $this->sort_no;
  195.     }
  196.     public function setDisableFlg($flg)
  197.     {
  198.         $this->disable_flg $flg;
  199.         return $this;
  200.     }
  201.     public function getDisableFlg()
  202.     {
  203.         return $this->disable_flg;
  204.     }
  205.     public function setInitFlg($flg)
  206.     {
  207.         $this->init_flg $flg;
  208.         return $this;
  209.     }
  210.     public function getInitFlg()
  211.     {
  212.         return $this->init_flg;
  213.     }
  214.     public function setHiddenFlg($flg)
  215.     {
  216.         $this->hidden_flg $flg;
  217.         return $this;
  218.     }
  219.     public function getHiddenFlg()
  220.     {
  221.         return $this->hidden_flg;
  222.     }
  223.     public function setValue($value)
  224.     {
  225.         $this->value $value;
  226.         return $this;
  227.     }
  228.     public function getValue()
  229.     {
  230.         return $this->value;
  231.     }
  232.     public function setMultipleFlg($flg)
  233.     {
  234.         $this->multiple_flg $flg;
  235.         return $this;
  236.     }
  237.     public function getMultipleFlg()
  238.     {
  239.         return $this->multiple_flg;
  240.     }
  241.     public function setOption(\Plugin\ApexOrderItemOption\Entity\Option $Option)
  242.     {
  243.         $this->Option $Option;
  244.         return $this;
  245.     }
  246.     public function getOption()
  247.     {
  248.         return $this->Option;
  249.     }
  250.     public function setCreator(\Eccube\Entity\Member $creator)
  251.     {
  252.         $this->Creator $creator;
  253.         return $this;
  254.     }
  255.     public function getCreator()
  256.     {
  257.         return $this->Creator;
  258.     }
  259. }