app/Plugin/DeliveryDate42/Entity/Holiday.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.  * Holiday
  15.  *
  16.  * @ORM\Table(name="plg_deliverydate_dtb_holiday")
  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\HolidayRepository")
  21.  */
  22. class Holiday extends \Eccube\Entity\AbstractEntity
  23. {
  24.     const SUNDAY 'Sun';
  25.     const MONDAY 'Mon';
  26.     const TUESDAY 'Tue';
  27.     const WEDNESDAY 'Wed';
  28.     const THURSDAY 'Thu';
  29.     const FRIDAY 'Fri';
  30.     const SATURDAY 'Sat';
  31.     private $add;
  32.     /**
  33.      * @var int
  34.      *
  35.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  36.      * @ORM\Id
  37.      * @ORM\GeneratedValue(strategy="IDENTITY")
  38.      */
  39.     private $id;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  44.      */
  45.     private $title;
  46.     /**
  47.      * @var \DateTime|null
  48.      *
  49.      * @ORM\Column(name="date", type="datetimetz", nullable=true)
  50.      */
  51.     private $date;
  52.     public function setId($id)
  53.     {
  54.         $this->id $id;
  55.         return $this;
  56.     }
  57.     public function getId()
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function setTitle($title)
  62.     {
  63.         $this->title $title;
  64.         return $this;
  65.     }
  66.     public function getTitle()
  67.     {
  68.         return $this->title;
  69.     }
  70.     public function setDate($date)
  71.     {
  72.         $this->date $date;
  73.         return $this;
  74.     }
  75.     public function getDate()
  76.     {
  77.         return $this->date;
  78.     }
  79.     public function setAdd($add)
  80.     {
  81.         $this->add $add;
  82.         return $this;
  83.     }
  84.     public function getAdd()
  85.     {
  86.         return $this->add;
  87.     }
  88. }