app/Customize/Entity/TextWarning.php line 29

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. use Eccube\Entity\Product;
  15. if (!class_exists('\Customize\Entity\TextWarning')) {
  16. /**
  17. * Season
  18. *
  19. * @ORM\Table(name="dtb_text_warning")
  20. * @ORM\InheritanceType("SINGLE_TABLE")
  21. * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  22. * @ORM\HasLifecycleCallbacks()
  23. * @ORM\Entity(repositoryClass="Customize\Repository\TextWarningRepository")
  24. */
  25. class TextWarning extends \Eccube\Entity\AbstractEntity
  26. {
  27. public const TYPE_ORDER = 'order';
  28. public const TYPE_DELIVERY = 'delivery';
  29. /**
  30. * @var integer
  31. *
  32. * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  33. * @ORM\Id
  34. * @ORM\GeneratedValue(strategy="IDENTITY")
  35. */
  36. private $id;
  37. /**
  38. * @var integer
  39. *
  40. * @ORM\Column(name="send_data_method_id", type="integer")
  41. */
  42. private $send_data_method_id;
  43. /**
  44. * @var string
  45. *
  46. * @ORM\Column(name="warning", type="text", nullable=true)
  47. */
  48. private $warning;
  49. /**
  50. * @var string
  51. *
  52. * @ORM\Column(name="type", type="string", options={"default": "order"})
  53. */
  54. private $type;
  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. * @var \Eccube\Entity\Product
  69. *
  70. * @ORM\ManyToOne(targetEntity="Eccube\Entity\Product", inversedBy="ProductTextWarnings")
  71. * @ORM\JoinColumns({
  72. * @ORM\JoinColumn(name="product_id", referencedColumnName="id")
  73. * })
  74. */
  75. private $Product;
  76. /**
  77. * Set id.
  78. *
  79. * @param int $id
  80. *
  81. * @return TextWarning
  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 type.
  99. *
  100. * @param int $type
  101. *
  102. * @return TextWarning
  103. */
  104. public function setType($type)
  105. {
  106. $this->type = $type;
  107. return $this;
  108. }
  109. /**
  110. * Get Id.
  111. *
  112. * @return string
  113. */
  114. public function getType()
  115. {
  116. return $this->type;
  117. }
  118. /**
  119. * Set send_data_method_id.
  120. *
  121. * @param string $send_data_method_id
  122. *
  123. * @return TextWarning
  124. */
  125. public function setSendDataMethodId($send_data_method_id)
  126. {
  127. $this->send_data_method_id = $send_data_method_id;
  128. return $this;
  129. }
  130. /**
  131. * Get send_data_method_id.
  132. *
  133. * @return string
  134. */
  135. public function getSendDataMethodId()
  136. {
  137. return $this->send_data_method_id;
  138. }
  139. /**
  140. * Set warning.
  141. *
  142. * @param string $warning
  143. *
  144. * @return TextWarning
  145. */
  146. public function setWarning($warning)
  147. {
  148. $this->warning = $warning;
  149. return $this;
  150. }
  151. /**
  152. * Get warning.
  153. *
  154. * @return string
  155. */
  156. public function getWarning()
  157. {
  158. return $this->warning;
  159. }
  160. /**
  161. * Get product.
  162. *
  163. * @return \Eccube\Entity\Product|null
  164. */
  165. public function getProduct()
  166. {
  167. return $this->Product;
  168. }
  169. /**
  170. * Set product.
  171. *
  172. * @param \Eccube\Entity\Product|null $product
  173. *
  174. * @return TextWarning
  175. */
  176. public function setProduct(Product $product = null)
  177. {
  178. $this->Product = $product;
  179. return $this;
  180. }
  181. /**
  182. * Set createDate.
  183. *
  184. * @param \DateTime $createDate
  185. *
  186. * @return TextWarning
  187. */
  188. public function setCreateDate($createDate)
  189. {
  190. $this->create_date = $createDate;
  191. return $this;
  192. }
  193. /**
  194. * Get createDate.
  195. *
  196. * @return \DateTime
  197. */
  198. public function getCreateDate()
  199. {
  200. return $this->create_date;
  201. }
  202. /**
  203. * Set updateDate.
  204. *
  205. * @param \DateTime $updateDate
  206. *
  207. * @return TextWarning
  208. */
  209. public function setUpdateDate($updateDate)
  210. {
  211. $this->update_date = $updateDate;
  212. return $this;
  213. }
  214. /**
  215. * Get updateDate.
  216. *
  217. * @return \DateTime
  218. */
  219. public function getUpdateDate()
  220. {
  221. return $this->update_date;
  222. }
  223. }
  224. }