app/Customize/Entity/Faq.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\Faq')) {
  15. /**
  16. * Faq
  17. *
  18. * @ORM\Table(name="dtb_faq")
  19. * @ORM\InheritanceType("SINGLE_TABLE")
  20. * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  21. * @ORM\HasLifecycleCallbacks()
  22. * @ORM\Entity(repositoryClass="Customize\Repository\FaqRepository")
  23. */
  24. class Faq 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 integer
  36. *
  37. * @ORM\Column(name="sort_no", type="integer", options={"unsigned":true}, nullable=true)
  38. */
  39. private $sort_no;
  40. /**
  41. * @var string
  42. *
  43. * @ORM\Column(name="title", type="string", length=255)
  44. */
  45. private $title;
  46. /**
  47. * @var string
  48. *
  49. * @ORM\Column(name="note", type="string", length=255)
  50. */
  51. private $note;
  52. /**
  53. * @var string
  54. *
  55. * @ORM\Column(name="description", type="text", nullable=true)
  56. */
  57. private $description;
  58. /**
  59. * @var string
  60. *
  61. * @ORM\Column(name="type_id", type="integer", nullable=true)
  62. */
  63. private $type_id;
  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. */
  82. public function setId($id)
  83. {
  84. $this->id = $id;
  85. return $this;
  86. }
  87. /**
  88. * Get Id.
  89. *
  90. * @return int
  91. */
  92. public function getId()
  93. {
  94. return $this->id;
  95. }
  96. /**
  97. * Set sort_no.
  98. *
  99. * @param int $sort_no
  100. *
  101. */
  102. public function setSortNo($sort_no)
  103. {
  104. $this->sort_no = $sort_no;
  105. return $this;
  106. }
  107. /**
  108. * Get sort_no.
  109. *
  110. * @param int $sort_no
  111. *
  112. */
  113. public function getSortNo()
  114. {
  115. return $this->sort_no;
  116. }
  117. /**
  118. * Set type_id.
  119. *
  120. * @param int $type_id
  121. *
  122. */
  123. public function setTypeId($type_id)
  124. {
  125. $this->type_id = $type_id;
  126. return $this;
  127. }
  128. /**
  129. * Get TypeId.
  130. *
  131. * @return int
  132. */
  133. public function getTypeId()
  134. {
  135. return $this->type_id;
  136. }
  137. /**
  138. * Get Title.
  139. *
  140. * @return int
  141. */
  142. public function getTitle()
  143. {
  144. return $this->title;
  145. }
  146. /**
  147. * Set title.
  148. *
  149. * @param int $title
  150. *
  151. * @return Coupon
  152. */
  153. public function setTitle($title)
  154. {
  155. $this->title = $title;
  156. return $this;
  157. }
  158. /**
  159. * Get Note.
  160. *
  161. * @return string
  162. */
  163. public function getNote()
  164. {
  165. return $this->note;
  166. }
  167. /**
  168. * Set note.
  169. *
  170. * @param string $note
  171. *
  172. * @return Coupon
  173. */
  174. public function setNote($note)
  175. {
  176. $this->note = $note;
  177. return $this;
  178. }
  179. /**
  180. * Get Description.
  181. *
  182. * @return string
  183. */
  184. public function getDescription()
  185. {
  186. return $this->description;
  187. }
  188. /**
  189. * Set description.
  190. *
  191. * @param string $description
  192. *
  193. * @return Coupon
  194. */
  195. public function setDescription($description)
  196. {
  197. $this->description = $description;
  198. return $this;
  199. }
  200. /**
  201. * Set createDate.
  202. *
  203. * @param \DateTime $createDate
  204. *
  205. * @return Coupon
  206. */
  207. public function setCreateDate($createDate)
  208. {
  209. $this->create_date = $createDate;
  210. return $this;
  211. }
  212. /**
  213. * Get createDate.
  214. *
  215. * @return \DateTime
  216. */
  217. public function getCreateDate()
  218. {
  219. return $this->create_date;
  220. }
  221. /**
  222. * Set updateDate.
  223. *
  224. * @param \DateTime $updateDate
  225. *
  226. * @return Coupon
  227. */
  228. public function setUpdateDate($updateDate)
  229. {
  230. $this->update_date = $updateDate;
  231. return $this;
  232. }
  233. /**
  234. * Get updateDate.
  235. *
  236. * @return \DateTime
  237. */
  238. public function getUpdateDate()
  239. {
  240. return $this->update_date;
  241. }
  242. }
  243. }