Advertisement
Guest User

RichiestaPreventivo.php

a guest
Mar 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7.  
  8.  
  9. /**
  10. * @ORM\Entity
  11. * @ORM\Table()
  12. */
  13. class RichiestaPreventivo
  14. {
  15. /**
  16. * @ORM\Id
  17. * @ORM\Column(type="integer")
  18. * @ORM\GeneratedValue(strategy="AUTO")
  19. */
  20. protected $id;
  21.  
  22.  
  23. /**
  24. * @ORM\Column(type="string", nullable=true)
  25. */
  26. protected $ip;
  27.  
  28.  
  29. /**
  30. * @ORM\Column(type="string", nullable=true)
  31. */
  32. protected $referer;
  33.  
  34.  
  35. /**
  36. * @ORM\Column(type="text", nullable=true)
  37. */
  38. protected $useragent;
  39.  
  40.  
  41.  
  42. /**
  43. * @ORM\Column(type="string")
  44. */
  45. protected $servizio;
  46.  
  47.  
  48.  
  49. /**
  50. * @ORM\Column(type="string", nullable=true)
  51. */
  52. protected $servizioProdotti;
  53.  
  54. public function __toString() {
  55. return $this->servizioProdott;
  56. }
  57.  
  58. /**
  59. * @ORM\Column(type="string")
  60. *
  61. * @Assert\NotBlank()
  62. * @Assert\Length(min=3)
  63. */
  64. protected $nome;
  65.  
  66.  
  67. /**
  68. * @ORM\Column(type="string")
  69. *
  70. * @Assert\Email(
  71. * message = "La mail '{{ value }}' non รจ nel formato valido.",
  72. * checkMX = true
  73. * )
  74. */
  75. protected $email;
  76.  
  77.  
  78. /**
  79. * @ORM\Column(type="string")
  80. */
  81. protected $oggetto;
  82.  
  83.  
  84. /**
  85. * @ORM\Column(type="text")
  86. */
  87. protected $messaggio;
  88.  
  89.  
  90. /**
  91. * @ORM\Column(type="datetime")
  92. */
  93. protected $dataCreazione;
  94.  
  95.  
  96.  
  97. public function __construct(){
  98. $this->dataCreazione = new \DateTime();
  99. }
  100.  
  101. /**
  102. * Set dataCreazione
  103. *
  104. * @param \DateTime $dataCreazione
  105. *
  106. * @return Utente
  107. */
  108. public function setDataCreazione($dataCreazione)
  109. {
  110. $this->dataCreazione = $dataCreazione;
  111.  
  112. return $this;
  113. }
  114.  
  115. /**
  116. * Get dataCreazione
  117. *
  118. * @return \DateTime
  119. */
  120. public function getDataCreazione()
  121. {
  122. return $this->dataCreazione;
  123. }
  124.  
  125.  
  126. /**
  127. * Get id.
  128. *
  129. * @return int
  130. */
  131. public function getId()
  132. {
  133. return $this->id;
  134. }
  135.  
  136. /**
  137. * Set ip.
  138. *
  139. * @param string|null $ip
  140. *
  141. * @return RichiestaPreventivo
  142. */
  143. public function setIp($ip = null)
  144. {
  145. $this->ip = $ip;
  146.  
  147. return $this;
  148. }
  149.  
  150. /**
  151. * Get ip.
  152. *
  153. * @return string|null
  154. */
  155. public function getIp()
  156. {
  157. return $this->ip;
  158. }
  159.  
  160. /**
  161. * Set referer.
  162. *
  163. * @param string|null $referer
  164. *
  165. * @return RichiestaPreventivo
  166. */
  167. public function setReferer($referer = null)
  168. {
  169. $this->referer = $referer;
  170.  
  171. return $this;
  172. }
  173.  
  174. /**
  175. * Get referer.
  176. *
  177. * @return string|null
  178. */
  179. public function getReferer()
  180. {
  181. return $this->referer;
  182. }
  183.  
  184. /**
  185. * Set useragent.
  186. *
  187. * @param string|null $useragent
  188. *
  189. * @return RichiestaPreventivo
  190. */
  191. public function setUseragent($useragent = null)
  192. {
  193. $this->useragent = $useragent;
  194.  
  195. return $this;
  196. }
  197.  
  198. /**
  199. * Get useragent.
  200. *
  201. * @return string|null
  202. */
  203. public function getUseragent()
  204. {
  205. return $this->useragent;
  206. }
  207.  
  208. /**
  209. * Set servizio.
  210. *
  211. * @param string $servizio
  212. *
  213. * @return RichiestaPreventivo
  214. */
  215. public function setServizio($servizio)
  216. {
  217. $this->servizio = $servizio;
  218.  
  219. return $this;
  220. }
  221.  
  222. /**
  223. * Get servizio.
  224. *
  225. * @return string
  226. */
  227. public function getServizio()
  228. {
  229. return $this->servizio;
  230. }
  231.  
  232. /**
  233. * Set servizioProdotti.
  234. *
  235. * @param string $servizioProdotti
  236. *
  237. * @return RichiestaPreventivo
  238. */
  239. public function setServizioProdotti($servizioProdotti)
  240. {
  241. $this->servizioProdotti = $servizioProdotti;
  242.  
  243. return $this;
  244. }
  245.  
  246. /**
  247. * Get servizioProdotti.
  248. *
  249. * @return string
  250. */
  251. public function getServizioProdotti()
  252. {
  253. return $this->servizioProdotti;
  254. }
  255.  
  256. /**
  257. * Set nome.
  258. *
  259. * @param string $nome
  260. *
  261. * @return RichiestaPreventivo
  262. */
  263. public function setNome($nome)
  264. {
  265. $this->nome = $nome;
  266.  
  267. return $this;
  268. }
  269.  
  270. /**
  271. * Get nome.
  272. *
  273. * @return string
  274. */
  275. public function getNome()
  276. {
  277. return $this->nome;
  278. }
  279.  
  280. /**
  281. * Set email.
  282. *
  283. * @param string $email
  284. *
  285. * @return RichiestaPreventivo
  286. */
  287. public function setEmail($email)
  288. {
  289. $this->email = $email;
  290.  
  291. return $this;
  292. }
  293.  
  294. /**
  295. * Get email.
  296. *
  297. * @return string
  298. */
  299. public function getEmail()
  300. {
  301. return $this->email;
  302. }
  303.  
  304. /**
  305. * Set oggetto.
  306. *
  307. * @param string $oggetto
  308. *
  309. * @return RichiestaPreventivo
  310. */
  311. public function setOggetto($oggetto)
  312. {
  313. $this->oggetto = $oggetto;
  314.  
  315. return $this;
  316. }
  317.  
  318. /**
  319. * Get oggetto.
  320. *
  321. * @return string
  322. */
  323. public function getOggetto()
  324. {
  325. return $this->oggetto;
  326. }
  327.  
  328. /**
  329. * Set messaggio.
  330. *
  331. * @param string $messaggio
  332. *
  333. * @return RichiestaPreventivo
  334. */
  335. public function setMessaggio($messaggio)
  336. {
  337. $this->messaggio = $messaggio;
  338.  
  339. return $this;
  340. }
  341.  
  342. /**
  343. * Get messaggio.
  344. *
  345. * @return string
  346. */
  347. public function getMessaggio()
  348. {
  349. return $this->messaggio;
  350. }
  351. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement