app/Plugin/DeliveryDate42/Entity/DeliveryDateConfig.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3. * Plugin Name : DeliveryDate4
  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\DeliveryDate42\Entity;
  12. use Doctrine\ORM\Mapping as ORM;
  13. /**
  14.  * DeliveryDateConfig
  15.  *
  16.  * @ORM\Table(name="plg_deliverydate_dtb_config")
  17.  * @ORM\InheritanceType("SINGLE_TABLE")
  18.  * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  19.  * @ORM\HasLifecycleCallbacks()
  20.  * @ORM\Entity(repositoryClass="Plugin\DeliveryDate42\Repository\ConfigRepository")
  21.  */
  22. class DeliveryDateConfig extends \Eccube\Entity\AbstractEntity
  23. {
  24.     const ENABLED 1;
  25.     const DISABLED 0;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="name", type="string", nullable=false, length=255)
  30.      * @ORM\Id
  31.      */
  32.     private $name;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="value", type="string", nullable=true, length=255)
  37.      */
  38.     private $value;
  39.     public function setName($name)
  40.     {
  41.         $this->name $name;
  42.         return $this;
  43.     }
  44.     public function getName()
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setValue($value)
  49.     {
  50.         $this->value $value;
  51.         return $this;
  52.     }
  53.     public function getValue()
  54.     {
  55.         return $this->value;
  56.     }
  57. }