<?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\Season')) {
/**
* Season
*
* @ORM\Table(name="dtb_season")
* @ORM\Entity(repositoryClass="Customize\Repository\SeasonRepository")
*/
class Season 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="name", type="string", length="255", nullable=true)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="note", type="text", nullable=true,)
*/
private $note;
/**
* @var string
*
* @ORM\Column(name="code", type="string", length="255")
*/
private $code;
/**
* @var boolean
*
* @ORM\Column(name="status", type="boolean", options={"default":false})
*/
private $status;
/**
* @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 key.
*
* @param string $key
*
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get key.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set name.
*
* @param string $name
*
* @return Campaign
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set note.
*
* @param string $note
*
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Get note.
*
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* @return boolean
*/
public function getStatus()
{
return $this->status;
}
/**
* @param boolean $status
*
* @return Season
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* 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;
}
}
}