app/Customize/Entity/Season.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of EC-CUBE
  4. *
  5. * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6. *
  7. * http://www.ec-cube.co.jp/
  8. *
  9. * For the full copyright and license information, please view the LICENSE
  10. * file that was distributed with this source code.
  11. */
  12. namespace Customize\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. if (!class_exists('\Customize\Entity\Season')) {
  15. /**
  16. * Season
  17. *
  18. * @ORM\Table(name="dtb_season")
  19. * @ORM\Entity(repositoryClass="Customize\Repository\SeasonRepository")
  20. */
  21. class Season extends \Eccube\Entity\AbstractEntity
  22. {
  23. /**
  24. * @var integer
  25. *
  26. * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  27. * @ORM\Id
  28. * @ORM\GeneratedValue(strategy="IDENTITY")
  29. */
  30. private $id;
  31. /**
  32. * @var string
  33. *
  34. * @ORM\Column(name="name", type="string", length="255", nullable=true)
  35. */
  36. private $name;
  37. /**
  38. * @var string
  39. *
  40. * @ORM\Column(name="note", type="text", nullable=true,)
  41. */
  42. private $note;
  43. /**
  44. * @var string
  45. *
  46. * @ORM\Column(name="code", type="string", length="255")
  47. */
  48. private $code;
  49. /**
  50. * @var boolean
  51. *
  52. * @ORM\Column(name="status", type="boolean", options={"default":false})
  53. */
  54. private $status;
  55. /**
  56. * @var \DateTime
  57. *
  58. * @ORM\Column(name="create_date", type="datetimetz")
  59. */
  60. private $create_date;
  61. /**
  62. * @var \DateTime
  63. *
  64. * @ORM\Column(name="update_date", type="datetimetz")
  65. */
  66. private $update_date;
  67. /**
  68. * Set id.
  69. *
  70. * @param int $id
  71. *
  72. * @return Campaign
  73. */
  74. public function setId($id)
  75. {
  76. $this->id = $id;
  77. return $this;
  78. }
  79. /**
  80. * Get Id.
  81. *
  82. * @return int
  83. */
  84. public function getId()
  85. {
  86. return $this->id;
  87. }
  88. /**
  89. * Set key.
  90. *
  91. * @param string $key
  92. *
  93. */
  94. public function setCode($code)
  95. {
  96. $this->code = $code;
  97. return $this;
  98. }
  99. /**
  100. * Get key.
  101. *
  102. * @return string
  103. */
  104. public function getCode()
  105. {
  106. return $this->code;
  107. }
  108. /**
  109. * Set name.
  110. *
  111. * @param string $name
  112. *
  113. * @return Campaign
  114. */
  115. public function setName($name)
  116. {
  117. $this->name = $name;
  118. return $this;
  119. }
  120. /**
  121. * Get name.
  122. *
  123. * @return string
  124. */
  125. public function getName()
  126. {
  127. return $this->name;
  128. }
  129. /**
  130. * Set note.
  131. *
  132. * @param string $note
  133. *
  134. */
  135. public function setNote($note)
  136. {
  137. $this->note = $note;
  138. return $this;
  139. }
  140. /**
  141. * Get note.
  142. *
  143. * @return string
  144. */
  145. public function getNote()
  146. {
  147. return $this->note;
  148. }
  149. /**
  150. * @return boolean
  151. */
  152. public function getStatus()
  153. {
  154. return $this->status;
  155. }
  156. /**
  157. * @param boolean $status
  158. *
  159. * @return Season
  160. */
  161. public function setStatus($status)
  162. {
  163. $this->status = $status;
  164. return $this;
  165. }
  166. /**
  167. * Set createDate.
  168. *
  169. * @param \DateTime $createDate
  170. *
  171. * @return Campaign
  172. */
  173. public function setCreateDate($createDate)
  174. {
  175. $this->create_date = $createDate;
  176. return $this;
  177. }
  178. /**
  179. * Get createDate.
  180. *
  181. * @return \DateTime
  182. */
  183. public function getCreateDate()
  184. {
  185. return $this->create_date;
  186. }
  187. /**
  188. * Set updateDate.
  189. *
  190. * @param \DateTime $updateDate
  191. *
  192. * @return Campaign
  193. */
  194. public function setUpdateDate($updateDate)
  195. {
  196. $this->update_date = $updateDate;
  197. return $this;
  198. }
  199. /**
  200. * Get updateDate.
  201. *
  202. * @return \DateTime
  203. */
  204. public function getUpdateDate()
  205. {
  206. return $this->update_date;
  207. }
  208. }
  209. }