PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/www/shop/engine/Shopware/Models/Log/Log.php

https://bitbucket.org/weberlars/sot-shopware
PHP | 297 lines | 92 code | 27 blank | 178 comment | 0 complexity | f0e49bc088eec9d0c1fdf457fb89f2d8 MD5 | raw file
Possible License(s): AGPL-3.0, MIT, BSD-3-Clause, LGPL-2.1, LGPL-3.0
  1. <?php
  2. /**
  3. * Shopware 4.0
  4. * Copyright Š 2012 shopware AG
  5. *
  6. * According to our dual licensing model, this program can be used either
  7. * under the terms of the GNU Affero General Public License, version 3,
  8. * or under a proprietary license.
  9. *
  10. * The texts of the GNU Affero General Public License with an additional
  11. * permission and of our proprietary license can be found at and
  12. * in the LICENSE file you have received along with this program.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * "Shopware" is a registered trademark of shopware AG.
  20. * The licensing of the program under the AGPLv3 does not imply a
  21. * trademark license. Therefore any rights, title and interest in
  22. * our trademarks remain entirely with us.
  23. *
  24. * @category Shopware
  25. * @package Shopware_Models
  26. * @subpackage Log
  27. * @copyright Copyright (c) 2012, shopware AG (http://www.shopware.de)
  28. * @version $Id$
  29. * @author Patrick Stahl
  30. * @author $Author$
  31. */
  32. namespace Shopware\Models\Log;
  33. use Shopware\Components\Model\ModelEntity,
  34. Doctrine\ORM\Mapping AS ORM;
  35. /**
  36. * Shopware Model Log
  37. *
  38. * This is the model for the premium-module, which contains a single row from s_addon_premiums.
  39. *
  40. * @ORM\Entity
  41. * @ORM\Table(name="s_core_log")
  42. */
  43. class Log extends ModelEntity
  44. {
  45. /**
  46. * @var integer $id
  47. *
  48. * @ORM\Column(name="id", type="integer", nullable=false)
  49. * @ORM\Id
  50. * @ORM\GeneratedValue(strategy="IDENTITY")
  51. */
  52. private $id;
  53. /**
  54. * @var string $type
  55. *
  56. * @ORM\Column(name="type", type="string", length=255, nullable=false)
  57. */
  58. private $type;
  59. /**
  60. * @var string $key
  61. *
  62. * @ORM\Column(name="`key`", type="string", length=255, nullable=false)
  63. */
  64. private $key;
  65. /**
  66. * @var string $text
  67. *
  68. * @ORM\Column(name="text", type="text", nullable=false)
  69. */
  70. private $text;
  71. /**
  72. * @var datetime $date
  73. *
  74. * @ORM\Column(name="date", type="datetime", nullable=false)
  75. */
  76. private $date;
  77. /**
  78. * @var string $user
  79. *
  80. * @ORM\Column(name="user", type="string", length=255, nullable=false)
  81. */
  82. private $user;
  83. /**
  84. * @var string $ipAddress
  85. *
  86. * @ORM\Column(name="ip_address", type="string", length=255, nullable=false)
  87. */
  88. private $ipAddress;
  89. /**
  90. * @var string $userAgent
  91. *
  92. * @ORM\Column(name="user_agent", type="string", length=255, nullable=false)
  93. */
  94. private $userAgent;
  95. /**
  96. * @var string $value4
  97. *
  98. * @ORM\Column(name="value4", type="string", length=255, nullable=false)
  99. */
  100. private $value4;
  101. /**
  102. * Get id
  103. *
  104. * @return integer
  105. */
  106. public function getId()
  107. {
  108. return $this->id;
  109. }
  110. /**
  111. * Set type
  112. *
  113. * @param string $type
  114. * @return Log
  115. */
  116. public function setType($type)
  117. {
  118. $this->type = $type;
  119. return $this;
  120. }
  121. /**
  122. * Get type
  123. *
  124. * @return string
  125. */
  126. public function getType()
  127. {
  128. return $this->type;
  129. }
  130. /**
  131. * Set key
  132. *
  133. * @param string $key
  134. * @return Log
  135. */
  136. public function setKey($key)
  137. {
  138. $this->key = $key;
  139. return $this;
  140. }
  141. /**
  142. * Get key
  143. *
  144. * @return string
  145. */
  146. public function getKey()
  147. {
  148. return $this->key;
  149. }
  150. /**
  151. * Set text
  152. *
  153. * @param string $text
  154. * @return Log
  155. */
  156. public function setText($text)
  157. {
  158. $this->text = $text;
  159. return $this;
  160. }
  161. /**
  162. * Get text
  163. *
  164. * @return string
  165. */
  166. public function getText()
  167. {
  168. return $this->text;
  169. }
  170. /**
  171. * Set date
  172. *
  173. * @param \DateTime $date
  174. * @return Log
  175. */
  176. public function setDate($date)
  177. {
  178. $this->date = $date;
  179. return $this;
  180. }
  181. /**
  182. * Get date
  183. *
  184. * @return \DateTime
  185. */
  186. public function getDate()
  187. {
  188. return $this->date;
  189. }
  190. /**
  191. * Set user
  192. *
  193. * @param string $user
  194. * @return Log
  195. */
  196. public function setUser($user)
  197. {
  198. $this->user = $user;
  199. return $this;
  200. }
  201. /**
  202. * Get user
  203. *
  204. * @return string
  205. */
  206. public function getUser()
  207. {
  208. return $this->user;
  209. }
  210. /**
  211. * Set ip_address
  212. *
  213. * @param string $ipAddress
  214. * @return Log
  215. */
  216. public function setIpAddress($ipAddress)
  217. {
  218. $this->ipAddress = $ipAddress;
  219. return $this;
  220. }
  221. /**
  222. * Get ipAddress
  223. *
  224. * @return string
  225. */
  226. public function getIpAddress()
  227. {
  228. return $this->ipAddress;
  229. }
  230. /**
  231. * Set userAgent
  232. *
  233. * @param string $userAgent
  234. * @return Log
  235. */
  236. public function setUserAgent($userAgent)
  237. {
  238. $this->userAgent = $userAgent;
  239. return $this;
  240. }
  241. /**
  242. * Get userAgent
  243. *
  244. * @return string
  245. */
  246. public function getUserAgent()
  247. {
  248. return $this->userAgent;
  249. }
  250. /**
  251. * Set value4
  252. *
  253. * @param string $value4
  254. * @return Log
  255. */
  256. public function setValue4($value4)
  257. {
  258. $this->value4 = $value4;
  259. return $this;
  260. }
  261. /**
  262. * Get value4
  263. *
  264. * @return string
  265. */
  266. public function getValue4()
  267. {
  268. return $this->value4;
  269. }
  270. }