Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.59 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8.  
  9.  
  10. /**
  11. * @ORM\Entity
  12. * @ORM\Table()
  13. */
  14. class Operaio
  15. {
  16. /**
  17. * @ORM\Id
  18. * @ORM\Column(type="integer")
  19. * @ORM\GeneratedValue(strategy="AUTO")
  20. */
  21. protected $id;
  22.  
  23.  
  24. /**
  25. *
  26. * @ORM\OneToOne(targetEntity="Utente", inversedBy="operaio", cascade={"persist"})
  27. * @ORM\JoinColumn(nullable=true)
  28. *
  29. */
  30. protected $utente;
  31.  
  32.  
  33. /**
  34. * @ORM\Column(type="string", nullable=true)
  35. */
  36. protected $nome;
  37.  
  38.  
  39. /**
  40. * @ORM\Column(type="string", nullable=true)
  41. */
  42. protected $cognome;
  43.  
  44.  
  45. /**
  46. * @ORM\Column(type="string", nullable=true)
  47. */
  48. protected $ragione_sociale;
  49.  
  50.  
  51. /**
  52. * @ORM\Column(type="string", nullable=true)
  53. */
  54. protected $telefono;
  55.  
  56.  
  57. /**
  58. * @ORM\Column(type="string", nullable=true)
  59. */
  60. protected $cellulare;
  61.  
  62.  
  63. /**
  64. * @ORM\Column(type="string", nullable=true)
  65. */
  66. protected $indirizzo;
  67.  
  68.  
  69. /**
  70. * @ORM\Column(type="string", nullable=true)
  71. */
  72. protected $citta;
  73.  
  74.  
  75. /**
  76. * @ORM\Column(type="string", nullable=true)
  77. */
  78. protected $cap;
  79.  
  80.  
  81. /**
  82. * @ORM\Column(type="string", nullable=true)
  83. */
  84. protected $nazionalita;
  85.  
  86.  
  87. /**
  88. * @ORM\Column(type="string", nullable=true)
  89. */
  90. protected $codice_fiscale;
  91.  
  92.  
  93. /**
  94. * @ORM\Column(type="string", nullable=true)
  95. */
  96. protected $partita_iva;
  97.  
  98.  
  99. /**
  100. * Get id
  101. *
  102. * @return integer
  103. */
  104. public function getId()
  105. {
  106. return $this->id;
  107. }
  108.  
  109. /**
  110. * Set nome
  111. *
  112. * @param string $nome
  113. *
  114. * @return Operaio
  115. */
  116. public function setNome($nome)
  117. {
  118. $this->nome = $nome;
  119.  
  120. return $this;
  121. }
  122.  
  123. /**
  124. * Get nome
  125. *
  126. * @return string
  127. */
  128. public function getNome()
  129. {
  130. return $this->nome;
  131. }
  132.  
  133. /**
  134. * Set cognome
  135. *
  136. * @param string $cognome
  137. *
  138. * @return Operaio
  139. */
  140. public function setCognome($cognome)
  141. {
  142. $this->cognome = $cognome;
  143.  
  144. return $this;
  145. }
  146.  
  147. /**
  148. * Get cognome
  149. *
  150. * @return string
  151. */
  152. public function getCognome()
  153. {
  154. return $this->cognome;
  155. }
  156.  
  157. /**
  158. * Set ragioneSociale
  159. *
  160. * @param string $ragioneSociale
  161. *
  162. * @return Operaio
  163. */
  164. public function setRagioneSociale($ragioneSociale)
  165. {
  166. $this->ragione_sociale = $ragioneSociale;
  167.  
  168. return $this;
  169. }
  170.  
  171. /**
  172. * Get ragioneSociale
  173. *
  174. * @return string
  175. */
  176. public function getRagioneSociale()
  177. {
  178. return $this->ragione_sociale;
  179. }
  180.  
  181. /**
  182. * Set telefono
  183. *
  184. * @param string $telefono
  185. *
  186. * @return Operaio
  187. */
  188. public function setTelefono($telefono)
  189. {
  190. $this->telefono = $telefono;
  191.  
  192. return $this;
  193. }
  194.  
  195. /**
  196. * Get telefono
  197. *
  198. * @return string
  199. */
  200. public function getTelefono()
  201. {
  202. return $this->telefono;
  203. }
  204.  
  205. /**
  206. * Set cellulare
  207. *
  208. * @param string $cellulare
  209. *
  210. * @return Operaio
  211. */
  212. public function setCellulare($cellulare)
  213. {
  214. $this->cellulare = $cellulare;
  215.  
  216. return $this;
  217. }
  218.  
  219. /**
  220. * Get cellulare
  221. *
  222. * @return string
  223. */
  224. public function getCellulare()
  225. {
  226. return $this->cellulare;
  227. }
  228.  
  229. /**
  230. * Set indirizzo
  231. *
  232. * @param string $indirizzo
  233. *
  234. * @return Operaio
  235. */
  236. public function setIndirizzo($indirizzo)
  237. {
  238. $this->indirizzo = $indirizzo;
  239.  
  240. return $this;
  241. }
  242.  
  243. /**
  244. * Get indirizzo
  245. *
  246. * @return string
  247. */
  248. public function getIndirizzo()
  249. {
  250. return $this->indirizzo;
  251. }
  252.  
  253. /**
  254. * Set citta
  255. *
  256. * @param string $citta
  257. *
  258. * @return Operaio
  259. */
  260. public function setCitta($citta)
  261. {
  262. $this->citta = $citta;
  263.  
  264. return $this;
  265. }
  266.  
  267. /**
  268. * Get citta
  269. *
  270. * @return string
  271. */
  272. public function getCitta()
  273. {
  274. return $this->citta;
  275. }
  276.  
  277. /**
  278. * Set cap
  279. *
  280. * @param string $cap
  281. *
  282. * @return Operaio
  283. */
  284. public function setCap($cap)
  285. {
  286. $this->cap = $cap;
  287.  
  288. return $this;
  289. }
  290.  
  291. /**
  292. * Get cap
  293. *
  294. * @return string
  295. */
  296. public function getCap()
  297. {
  298. return $this->cap;
  299. }
  300.  
  301. /**
  302. * Set nazionalita
  303. *
  304. * @param string $nazionalita
  305. *
  306. * @return Operaio
  307. */
  308. public function setNazionalita($nazionalita)
  309. {
  310. $this->nazionalita = $nazionalita;
  311.  
  312. return $this;
  313. }
  314.  
  315. /**
  316. * Get nazionalita
  317. *
  318. * @return string
  319. */
  320. public function getNazionalita()
  321. {
  322. return $this->nazionalita;
  323. }
  324.  
  325. /**
  326. * Set codiceFiscale
  327. *
  328. * @param string $codiceFiscale
  329. *
  330. * @return Operaio
  331. */
  332. public function setCodiceFiscale($codiceFiscale)
  333. {
  334. $this->codice_fiscale = $codiceFiscale;
  335.  
  336. return $this;
  337. }
  338.  
  339. /**
  340. * Get codiceFiscale
  341. *
  342. * @return string
  343. */
  344. public function getCodiceFiscale()
  345. {
  346. return $this->codice_fiscale;
  347. }
  348.  
  349. /**
  350. * Set partitaIva
  351. *
  352. * @param string $partitaIva
  353. *
  354. * @return Operaio
  355. */
  356. public function setPartitaIva($partitaIva)
  357. {
  358. $this->partita_iva = $partitaIva;
  359.  
  360. return $this;
  361. }
  362.  
  363. /**
  364. * Get partitaIva
  365. *
  366. * @return string
  367. */
  368. public function getPartitaIva()
  369. {
  370. return $this->partita_iva;
  371. }
  372.  
  373. /**
  374. * Set utente
  375. *
  376. * @param \AppBundle\Entity\Utente $utente
  377. *
  378. * @return Operaio
  379. */
  380. public function setUtente(\AppBundle\Entity\Utente $utente = null)
  381. {
  382. $this->utente = $utente;
  383.  
  384. return $this;
  385. }
  386.  
  387. /**
  388. * Get utente
  389. *
  390. * @return \AppBundle\Entity\Utente
  391. */
  392. public function getUtente()
  393. {
  394. return $this->utente;
  395. }
  396. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement