app/Customize/Entity/Campaign.php line 28

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\Campaign')) {
  15. /**
  16. * Campaign
  17. *
  18. * @ORM\Table(name="dtb_campaign")
  19. * @ORM\InheritanceType("SINGLE_TABLE")
  20. * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  21. * @ORM\HasLifecycleCallbacks()
  22. * @ORM\Entity(repositoryClass="Customize\Repository\CampaignRepository")
  23. */
  24. class Campaign extends \Eccube\Entity\AbstractEntity
  25. {
  26. /**
  27. * @var integer
  28. *
  29. * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  30. * @ORM\Id
  31. * @ORM\GeneratedValue(strategy="IDENTITY")
  32. */
  33. private $id;
  34. /**
  35. * @var string
  36. *
  37. * @ORM\Column(name="title", type="string", length=255)
  38. */
  39. private $title;
  40. /**
  41. * @var string
  42. *
  43. * @ORM\Column(name="image", type="string", length=255, nullable=true)
  44. */
  45. private $image;
  46. /**
  47. * @var string
  48. *
  49. * @ORM\Column(name="content", type="text", nullable=true)
  50. */
  51. private $content;
  52. /**
  53. * @var \DateTime
  54. *
  55. * @ORM\Column(name="start_date", type="datetimetz")
  56. */
  57. private $start_date;
  58. /**
  59. * @var \DateTime
  60. *
  61. * @ORM\Column(name="end_date", type="datetimetz")
  62. */
  63. private $end_date;
  64. /**
  65. * @var \DateTime
  66. *
  67. * @ORM\Column(name="create_date", type="datetimetz")
  68. */
  69. private $create_date;
  70. /**
  71. * @var \DateTime
  72. *
  73. * @ORM\Column(name="update_date", type="datetimetz")
  74. */
  75. private $update_date;
  76. /**
  77. * Set id.
  78. *
  79. * @param int $id
  80. *
  81. * @return Campaign
  82. */
  83. public function setId($id)
  84. {
  85. $this->id = $id;
  86. return $this;
  87. }
  88. /**
  89. * Get Id.
  90. *
  91. * @return int
  92. */
  93. public function getId()
  94. {
  95. return $this->id;
  96. }
  97. /**
  98. * Set title.
  99. *
  100. * @param string $title
  101. *
  102. * @return Campaign
  103. */
  104. public function setTitle($title)
  105. {
  106. $this->title = $title;
  107. return $this;
  108. }
  109. /**
  110. * Get title.
  111. *
  112. * @return string
  113. */
  114. public function getTitle()
  115. {
  116. return $this->title;
  117. }
  118. /**
  119. * Set image.
  120. *
  121. * @param string $image
  122. *
  123. * @return Campaign
  124. */
  125. public function setImage($image)
  126. {
  127. $this->image = $image;
  128. return $this;
  129. }
  130. /**
  131. * Get image.
  132. *
  133. * @return string
  134. */
  135. public function getImage()
  136. {
  137. return $this->image;
  138. }
  139. /**
  140. * Set content.
  141. *
  142. * @param string $content
  143. *
  144. * @return Campaign
  145. */
  146. public function setContent($content)
  147. {
  148. $this->content = $content;
  149. return $this;
  150. }
  151. /**
  152. * Get content.
  153. *
  154. * @return string
  155. */
  156. public function getContent()
  157. {
  158. return $this->content;
  159. }
  160. /**
  161. * Set start_date.
  162. *
  163. * @param \DateTime $start_date
  164. *
  165. * @return Campaign
  166. */
  167. public function setStartDate($start_date)
  168. {
  169. $this->start_date = $start_date;
  170. return $this;
  171. }
  172. /**
  173. * Get start_date.
  174. *
  175. * @return \DateTime
  176. */
  177. public function getStartDate()
  178. {
  179. return $this->start_date;
  180. }
  181. /**
  182. * Set end_date.
  183. *
  184. * @param \DateTime $end_date
  185. *
  186. * @return Campaign
  187. */
  188. public function setEndDate($end_date)
  189. {
  190. $this->end_date = $end_date;
  191. return $this;
  192. }
  193. /**
  194. * Get end_date.
  195. *
  196. * @return \DateTime
  197. */
  198. public function getEndDate()
  199. {
  200. return $this->end_date;
  201. }
  202. /**
  203. * Set createDate.
  204. *
  205. * @param \DateTime $createDate
  206. *
  207. * @return Campaign
  208. */
  209. public function setCreateDate($createDate)
  210. {
  211. $this->create_date = $createDate;
  212. return $this;
  213. }
  214. /**
  215. * Get createDate.
  216. *
  217. * @return \DateTime
  218. */
  219. public function getCreateDate()
  220. {
  221. return $this->create_date;
  222. }
  223. /**
  224. * Set updateDate.
  225. *
  226. * @param \DateTime $updateDate
  227. *
  228. * @return Campaign
  229. */
  230. public function setUpdateDate($updateDate)
  231. {
  232. $this->update_date = $updateDate;
  233. return $this;
  234. }
  235. /**
  236. * Get updateDate.
  237. *
  238. * @return \DateTime
  239. */
  240. public function getUpdateDate()
  241. {
  242. return $this->update_date;
  243. }
  244. }
  245. }