<?php
namespace Customize\Entity;
use Doctrine\ORM\Mapping as ORM;
use Eccube\Entity\AbstractEntity;
/**
* Banner
*
* @ORM\Table(name="dtb_banner")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
* @ORM\HasLifecycleCallbacks()
* @ORM\Entity(repositoryClass="Customize\Repository\BannerRepository")
*/
class Banner extends AbstractEntity
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var boolean
*
* @ORM\Column(name="status", type="boolean", options={"default":true})
*/
private $status;
/**
* @var string
*
* @ORM\Column(name="url", type="string", length=255, nullable=true)
*/
private $url;
/**
* @var int
*
* @ORM\Column(name="link_method", type="integer", nullable=true)
*/
private $link_method;
/**
* @var int
*
* @ORM\Column(name="sort_no", type="integer", nullable=true)
*/
private $sort_no;
/**
* @var string
*
* @ORM\Column(name="image", type="string", length=255, nullable=true)
*/
private $image;
/**
* @var integer
*
* @ORM\Column(name="type", type="integer", length=1, nullable=true)
*/
private $type;
/**
* @var \DateTime
*
* @ORM\Column(name="create_date", type="datetimetz")
*/
private $create_date;
/**
* @var \DateTime
*
* @ORM\Column(name="update_date", type="datetimetz")
*/
private $update_date;
/**
* Get banner id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set banner id.
*
* @param int $id
*
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Set status.
*
* @param bool $status
*
* @return $this
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* is status.
*
* @return bool
*/
public function isStatus()
{
return $this->status;
}
/**
* Set url.
*
* @param string|null $url
*
* @return $this
*/
public function setUrl($url = null)
{
$this->url = $url;
return $this;
}
/**
* Get url.
*
* @return string|null
*/
public function getUrl()
{
return $this->url;
}
/**
* Get link_method.
*
* @return int
*/
public function getLinkMethod()
{
return $this->link_method;
}
/**
* Set link_method.
*
* @param int $link_method
*
* @return $this
*/
public function setLinkMethod($link_method)
{
$this->link_method = $link_method;
return $this;
}
/**
* Get rank.
*
* @return int
*/
public function getSortNo()
{
return $this->sort_no;
}
/**
* Set rank.
*
* @param int $sort_no
*
* @return $this
*/
public function setSortNo($sort_no)
{
$this->sort_no = $sort_no;
return $this;
}
/**
* Set image.
*
* @param string|null $image
*
* @return $this
*/
public function setImage($image = null)
{
$this->image = $image;
return $this;
}
/**
* Get image.
*
* @return string|null
*/
public function getImage()
{
return $this->image;
}
/**
* Set type.
*
* @param integer|null $type
*
* @return Banner
*/
public function setType($type = null)
{
$this->type = $type;
return $this;
}
/**
* Get type.
*
* @return integer|null
*/
public function getType()
{
return $this->type;
}
/**
* Set create_date.
*
* @param \DateTime $createDate
*
* @return $this
*/
public function setCreateDate($createDate)
{
$this->create_date = $createDate;
return $this;
}
/**
* Get create_date.
*
* @return \DateTime
*/
public function getCreateDate()
{
return $this->create_date;
}
/**
* Set update_date.
*
* @param \DateTime $updateDate
*
* @return $this
*/
public function setUpdateDate($updateDate)
{
$this->update_date = $updateDate;
return $this;
}
/**
* Get update_date.
*
* @return \DateTime
*/
public function getUpdateDate()
{
return $this->update_date;
}
}