app/Plugin/DeliveryDate42/Entity/DeliveryDate.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.  * DeliveryDate
  15.  *
  16.  * @ORM\Table(name="plg_deliverydate_dtb_delivery_date")
  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\DeliveryDateRepository")
  21.  */
  22. class DeliveryDate extends \Eccube\Entity\AbstractEntity
  23. {
  24.     /**
  25.      * @var int
  26.      *
  27.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="IDENTITY")
  30.      */
  31.     private $id;
  32.     /**
  33.      * @var int|null
  34.      *
  35.      * @ORM\Column(name="dates", type="integer", nullable=true)
  36.      */
  37.     private $dates;
  38.     /**
  39.      * @var \Eccube\Entity\Delivery
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="Eccube\Entity\Delivery", inversedBy="DeliveryDates")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="delivery_id", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $Delivery;
  47.     /**
  48.      * @var \Eccube\Entity\Master\Pref
  49.      *
  50.      * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref")
  51.      * @ORM\JoinColumns({
  52.      *   @ORM\JoinColumn(name="pref_id", referencedColumnName="id")
  53.      * })
  54.      */
  55.     private $Pref;
  56.     /**
  57.      * Get id
  58.      *
  59.      * @return integer
  60.      */
  61.     public function getId()
  62.     {
  63.         return $this->id;
  64.     }
  65.     /**
  66.      * Set dates
  67.      *
  68.      * @param  integer|null   $dates
  69.      * @return DeliveryDate
  70.      */
  71.     public function setDates($dates)
  72.     {
  73.         $this->dates $dates;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get dates
  78.      *
  79.      * @return integer
  80.      */
  81.     public function getDates()
  82.     {
  83.         return $this->dates;
  84.     }
  85.     /**
  86.      * Set Delivery
  87.      *
  88.      * @param  \Eccube\Entity\Delivery $Delivery
  89.      * @return DeliveryDate
  90.      */
  91.     public function setDelivery(\Eccube\Entity\Delivery $Delivery null)
  92.     {
  93.         $this->Delivery $Delivery;
  94.         return $this;
  95.     }
  96.     /**
  97.      * Get Delivery
  98.      *
  99.      * @return \Eccube\Entity\Delivery
  100.      */
  101.     public function getDelivery()
  102.     {
  103.         return $this->Delivery;
  104.     }
  105.     /**
  106.      * Set Pref
  107.      *
  108.      * @param  \Eccube\Entity\Master\Pref $pref
  109.      * @return DeliveryDate
  110.      */
  111.     public function setPref(\Eccube\Entity\Master\Pref $pref)
  112.     {
  113.         $this->Pref $pref;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Get Pref
  118.      *
  119.      * @return \Eccube\Entity\Master\Pref
  120.      */
  121.     public function getPref()
  122.     {
  123.         return $this->Pref;
  124.     }
  125. }