app/proxy/entity/src/Eccube/Entity/ClassCategory.php line 28

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 Eccube\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14.     /**
  15.      * ClassCategory
  16.      *
  17.      * @ORM\Table(name="dtb_class_category")
  18.      * @ORM\InheritanceType("SINGLE_TABLE")
  19.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  20.      * @ORM\HasLifecycleCallbacks()
  21.      * @ORM\Entity(repositoryClass="Eccube\Repository\ClassCategoryRepository")
  22.      */
  23.     class ClassCategory extends \Eccube\Entity\AbstractEntity
  24.     {
  25.     use \Plugin\RegularPurchase\Entity\ClassCategoryTrait;
  26.         /**
  27.          * @return string
  28.          */
  29.         public function __toString()
  30.         {
  31.             return (string) $this->getName();
  32.         }
  33.         /**
  34.          * @var int
  35.          *
  36.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  37.          * @ORM\Id
  38.          * @ORM\GeneratedValue(strategy="IDENTITY")
  39.          */
  40.         private $id;
  41.         /**
  42.          * @var string
  43.          *
  44.          * @ORM\Column(name="backend_name", type="string", length=255, nullable=true)
  45.          */
  46.         private $backend_name;
  47.         /**
  48.          * @var string
  49.          *
  50.          * @ORM\Column(name="name", type="string", length=255)
  51.          */
  52.         private $name;
  53.         /**
  54.          * @var int
  55.          *
  56.          * @ORM\Column(name="sort_no", type="integer", options={"unsigned":true})
  57.          */
  58.         private $sort_no;
  59.         /**
  60.          * @var boolean
  61.          *
  62.          * @ORM\Column(name="visible", type="boolean", options={"default":true})
  63.          */
  64.         private $visible;
  65.         /**
  66.          * @var \DateTime
  67.          *
  68.          * @ORM\Column(name="create_date", type="datetimetz")
  69.          */
  70.         private $create_date;
  71.         /**
  72.          * @var \DateTime
  73.          *
  74.          * @ORM\Column(name="update_date", type="datetimetz")
  75.          */
  76.         private $update_date;
  77.         /**
  78.          * @var \Eccube\Entity\ClassName
  79.          *
  80.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\ClassName", inversedBy="ClassCategories")
  81.          * @ORM\JoinColumns({
  82.          *   @ORM\JoinColumn(name="class_name_id", referencedColumnName="id")
  83.          * })
  84.          */
  85.         private $ClassName;
  86.         /**
  87.          * @var \Eccube\Entity\Member
  88.          *
  89.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
  90.          * @ORM\JoinColumns({
  91.          *   @ORM\JoinColumn(name="creator_id", referencedColumnName="id")
  92.          * })
  93.          */
  94.         private $Creator;
  95.         /**
  96.          * @var int
  97.          *
  98.          * @ORM\Column(name="regular_purchase_flg", type="boolean", options={"default":false})
  99.          */
  100.         // 定期用フラグ (C4M KIN)
  101.         private $regular_purchase_flg;
  102.         /**
  103.          * Get id.
  104.          *
  105.          * @return int
  106.          */
  107.         public function getId()
  108.         {
  109.             return $this->id;
  110.         }
  111.         /**
  112.          * Set backend_name.
  113.          *
  114.          * @param string $backendName
  115.          *
  116.          * @return ClassCategory
  117.          */
  118.         public function setBackendName($backendName)
  119.         {
  120.             $this->backend_name $backendName;
  121.             return $this;
  122.         }
  123.         /**
  124.          * Get backend_name.
  125.          *
  126.          * @return string
  127.          */
  128.         public function getBackendName()
  129.         {
  130.             return $this->backend_name;
  131.         }
  132.         /**
  133.          * Set name.
  134.          *
  135.          * @param string $name
  136.          *
  137.          * @return ClassCategory
  138.          */
  139.         public function setName($name)
  140.         {
  141.             $this->name $name;
  142.             return $this;
  143.         }
  144.         /**
  145.          * Get name.
  146.          *
  147.          * @return string
  148.          */
  149.         public function getName()
  150.         {
  151.             return $this->name;
  152.         }
  153.         /**
  154.          * Set sortNo.
  155.          *
  156.          * @param int $sortNo
  157.          *
  158.          * @return ClassCategory
  159.          */
  160.         public function setSortNo($sortNo)
  161.         {
  162.             $this->sort_no $sortNo;
  163.             return $this;
  164.         }
  165.         /**
  166.          * Get sortNo.
  167.          *
  168.          * @return int
  169.          */
  170.         public function getSortNo()
  171.         {
  172.             return $this->sort_no;
  173.         }
  174.         /**
  175.          * Set createDate.
  176.          *
  177.          * @param \DateTime $createDate
  178.          *
  179.          * @return ClassCategory
  180.          */
  181.         public function setCreateDate($createDate)
  182.         {
  183.             $this->create_date $createDate;
  184.             return $this;
  185.         }
  186.         /**
  187.          * Get createDate.
  188.          *
  189.          * @return \DateTime
  190.          */
  191.         public function getCreateDate()
  192.         {
  193.             return $this->create_date;
  194.         }
  195.         /**
  196.          * Set updateDate.
  197.          *
  198.          * @param \DateTime $updateDate
  199.          *
  200.          * @return ClassCategory
  201.          */
  202.         public function setUpdateDate($updateDate)
  203.         {
  204.             $this->update_date $updateDate;
  205.             return $this;
  206.         }
  207.         /**
  208.          * Get updateDate.
  209.          *
  210.          * @return \DateTime
  211.          */
  212.         public function getUpdateDate()
  213.         {
  214.             return $this->update_date;
  215.         }
  216.         /**
  217.          * Set className.
  218.          *
  219.          * @param \Eccube\Entity\ClassName|null $className
  220.          *
  221.          * @return ClassCategory
  222.          */
  223.         public function setClassName(ClassName $className null)
  224.         {
  225.             $this->ClassName $className;
  226.             return $this;
  227.         }
  228.         /**
  229.          * Get className.
  230.          *
  231.          * @return \Eccube\Entity\ClassName|null
  232.          */
  233.         public function getClassName()
  234.         {
  235.             return $this->ClassName;
  236.         }
  237.         /**
  238.          * Set creator.
  239.          *
  240.          * @param \Eccube\Entity\Member|null $creator
  241.          *
  242.          * @return ClassCategory
  243.          */
  244.         public function setCreator(Member $creator null)
  245.         {
  246.             $this->Creator $creator;
  247.             return $this;
  248.         }
  249.         /**
  250.          * Get creator.
  251.          *
  252.          * @return \Eccube\Entity\Member|null
  253.          */
  254.         public function getCreator()
  255.         {
  256.             return $this->Creator;
  257.         }
  258.         /**
  259.          * Set visible
  260.          *
  261.          * @param boolean $visible
  262.          *
  263.          * @return ClassCategory
  264.          */
  265.         public function setVisible($visible)
  266.         {
  267.             $this->visible $visible;
  268.             return $this;
  269.         }
  270.         /**
  271.          * Is the visibility visible?
  272.          *
  273.          * @return boolean
  274.          */
  275.         public function isVisible()
  276.         {
  277.             return $this->visible;
  278.         }
  279.         // 定期用フラグ (C4M KIN)
  280.         public function getRegularPurchaseFlg()
  281.         {
  282.             return $this->regular_purchase_flg;
  283.         }
  284.         public function setRegularPurchaseFlg($regular_purchase_flg)
  285.         {
  286.             $this->regular_purchase_flg $regular_purchase_flg;
  287.             return $this;
  288.         }
  289.     }