<?php
/*
* Plugin Name : ExpressLink4
*
* Copyright (C) BraTech Co., Ltd. All Rights Reserved.
* http://www.bratech.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\ExpressLink42\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Delivtype
*
* @ORM\Table(name="plg_expresslink_dtb_delivtype")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
* @ORM\HasLifecycleCallbacks()
* @ORM\Entity(repositoryClass="Plugin\ExpressLink42\Repository\DelivtypeRepository")
*/
class Delivtype extends \Eccube\Entity\AbstractEntity
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", nullable=true, length=255)
*/
private $name;
/**
* @var \Eccube\Entity\Delivery
*
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Delivery")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="delivery_id", referencedColumnName="id")
* })
*/
private $Delivery;
public function getId()
{
return $this->id;
}
public function setName($name)
{
$this->name = $name;
return $this;
}
public function getName()
{
return $this->name;
}
public function setDelivery(\Eccube\Entity\Delivery $delivery = null)
{
$this->Delivery = $delivery;
return $this;
}
public function getDelivery()
{
return $this->Delivery;
}
}