app/Plugin/Noshidelivery/Entity/NoshideliveryCheck.php line 30

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\Noshidelivery\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Eccube\Entity\AbstractEntity;
  15. if (!class_exists('\Plugin\Noshidelivery\Entity\NoshideliveryCheck')) {
  16.     /**
  17.      * NoshideliveryCheck
  18.      *
  19.      * @ORM\Table(name="plg_noshidelivery_check")
  20.      * @ORM\InheritanceType("SINGLE_TABLE")
  21.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  22.      * @ORM\HasLifecycleCallbacks()
  23.      * @ORM\Entity(repositoryClass="Plugin\Noshidelivery\Repository\NoshideliveryCheckRepository")
  24.      */
  25.     class NoshideliveryCheck extends AbstractEntity
  26.     {
  27.         /**
  28.          * @return string
  29.          */
  30.         public function __toString()
  31.         {
  32.             return $this->getName();
  33.         }
  34.         /**
  35.          * @var int
  36.          *
  37.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  38.          * @ORM\Id
  39.          * @ORM\GeneratedValue(strategy="IDENTITY")
  40.          */
  41.         private $id;
  42.         /**
  43.          * @var string|null
  44.          *
  45.          * @ORM\Column(name="name", type="string", length=255, nullable=true)
  46.          */
  47.         private $name;
  48.         /**
  49.          * @var int
  50.          *
  51.          * @ORM\Column(name="sort_no", type="integer", nullable=true, options={"unsigned":true})
  52.          */
  53.         private $sort_no;
  54.         /**
  55.          * Get id.
  56.          *
  57.          * @return int
  58.          */
  59.         public function getId()
  60.         {
  61.             return $this->id;
  62.         }
  63.         /**
  64.          * Set name.
  65.          *
  66.          * @param string|null $name
  67.          *
  68.          * @return DeliveryDuration
  69.          */
  70.         public function setName($name null)
  71.         {
  72.             $this->name $name;
  73.             return $this;
  74.         }
  75.         /**
  76.          * Get name.
  77.          *
  78.          * @return string|null
  79.          */
  80.         public function getName()
  81.         {
  82.             return $this->name;
  83.         }
  84.         /**
  85.          * Set sortNo.
  86.          *
  87.          * @param int $sortNo
  88.          *
  89.          * @return DeliveryDuration
  90.          */
  91.         public function setSortNo($sortNo)
  92.         {
  93.             $this->sort_no $sortNo;
  94.             return $this;
  95.         }
  96.         /**
  97.          * Get sortNo.
  98.          *
  99.          * @return int
  100.          */
  101.         public function getSortNo()
  102.         {
  103.             return $this->sort_no;
  104.         }
  105.     }
  106. }