app/Plugin/ExpressLink42/Entity/Delivtype.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3. * Plugin Name : ExpressLink4
  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\ExpressLink42\Entity;
  12. use Doctrine\ORM\Mapping as ORM;
  13. /**
  14.  * Delivtype
  15.  *
  16.  * @ORM\Table(name="plg_expresslink_dtb_delivtype")
  17.  * @ORM\InheritanceType("SINGLE_TABLE")
  18.  * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  19.  * @ORM\HasLifecycleCallbacks()
  20.  * @ORM\Entity(repositoryClass="Plugin\ExpressLink42\Repository\DelivtypeRepository")
  21.  */
  22. class Delivtype 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 string
  34.      *
  35.      * @ORM\Column(name="name", type="string", nullable=true, length=255)
  36.      */
  37.     private $name;
  38.     /**
  39.      * @var \Eccube\Entity\Delivery
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="Eccube\Entity\Delivery")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="delivery_id", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $Delivery;
  47.     public function getId()
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function setName($name)
  52.     {
  53.         $this->name $name;
  54.         return $this;
  55.     }
  56.     public function getName()
  57.     {
  58.         return $this->name;
  59.     }
  60.     public function setDelivery(\Eccube\Entity\Delivery $delivery null)
  61.     {
  62.         $this->Delivery $delivery;
  63.         return $this;
  64.     }
  65.     public function getDelivery()
  66.     {
  67.         return $this->Delivery;
  68.     }
  69. }