<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Customize\Entity;
use Doctrine\ORM\Mapping as ORM;
if (!class_exists('\Customize\Entity\Campaign')) {
/**
* Campaign
*
* @ORM\Table(name="dtb_campaign")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
* @ORM\HasLifecycleCallbacks()
* @ORM\Entity(repositoryClass="Customize\Repository\CampaignRepository")
*/
class Campaign extends \Eccube\Entity\AbstractEntity
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="image", type="string", length=255, nullable=true)
*/
private $image;
/**
* @var string
*
* @ORM\Column(name="content", type="text", nullable=true)
*/
private $content;
/**
* @var \DateTime
*
* @ORM\Column(name="start_date", type="datetimetz")
*/
private $start_date;
/**
* @var \DateTime
*
* @ORM\Column(name="end_date", type="datetimetz")
*/
private $end_date;
/**
* @var \DateTime
*
* @ORM\Column(name="create_date", type="datetimetz")
*/
private $create_date;
/**
* @var \DateTime
*
* @ORM\Column(name="update_date", type="datetimetz")
*/
private $update_date;
/**
* Set id.
*
* @param int $id
*
* @return Campaign
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Get Id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set title.
*
* @param string $title
*
* @return Campaign
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title.
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set image.
*
* @param string $image
*
* @return Campaign
*/
public function setImage($image)
{
$this->image = $image;
return $this;
}
/**
* Get image.
*
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* Set content.
*
* @param string $content
*
* @return Campaign
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
/**
* Get content.
*
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Set start_date.
*
* @param \DateTime $start_date
*
* @return Campaign
*/
public function setStartDate($start_date)
{
$this->start_date = $start_date;
return $this;
}
/**
* Get start_date.
*
* @return \DateTime
*/
public function getStartDate()
{
return $this->start_date;
}
/**
* Set end_date.
*
* @param \DateTime $end_date
*
* @return Campaign
*/
public function setEndDate($end_date)
{
$this->end_date = $end_date;
return $this;
}
/**
* Get end_date.
*
* @return \DateTime
*/
public function getEndDate()
{
return $this->end_date;
}
/**
* Set createDate.
*
* @param \DateTime $createDate
*
* @return Campaign
*/
public function setCreateDate($createDate)
{
$this->create_date = $createDate;
return $this;
}
/**
* Get createDate.
*
* @return \DateTime
*/
public function getCreateDate()
{
return $this->create_date;
}
/**
* Set updateDate.
*
* @param \DateTime $updateDate
*
* @return Campaign
*/
public function setUpdateDate($updateDate)
{
$this->update_date = $updateDate;
return $this;
}
/**
* Get updateDate.
*
* @return \DateTime
*/
public function getUpdateDate()
{
return $this->update_date;
}
}
}