Advertisement
Guest User

ServizioProdotto.php

a guest
Mar 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.44 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5.  
  6.  
  7. /**
  8. * @ORM\Entity(repositoryClass="AppBundle\Repository\ServizioProdottoRepository")
  9. * @ORM\Entity
  10. * @ORM\Table()
  11. */
  12. class ServizioProdotto
  13. {
  14. /**
  15. * @ORM\Id
  16. * @ORM\Column(type="integer")
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. protected $id;
  20.  
  21.  
  22.  
  23. /**
  24. * @ORM\Column(type="string")
  25. */
  26. protected $nome;
  27.  
  28.  
  29. /**
  30. * @ORM\Column(type="string")
  31. */
  32. protected $nome_visibile;
  33.  
  34.  
  35. /**
  36. * @ORM\Column(type="integer")
  37. */
  38. protected $attivo;
  39.  
  40.  
  41. /**
  42. * @ORM\Column(type="float", nullable=true)
  43. */
  44. protected $costo_promo;
  45.  
  46.  
  47. /**
  48. * @ORM\Column(type="float")
  49. */
  50. protected $costo_cliente;
  51.  
  52.  
  53. /**
  54. * @ORM\Column(type="float", nullable=true)
  55. */
  56. protected $costo_fornitore;
  57.  
  58.  
  59. /**
  60. * @ORM\Column(type="float")
  61. */
  62. protected $costo_reale;
  63.  
  64.  
  65. /**
  66. * @ORM\Column(type="float")
  67. */
  68. protected $guadagno;
  69.  
  70.  
  71. /**
  72. * @ORM\Column(type="float")
  73. */
  74. protected $quantita_promo;
  75.  
  76.  
  77.  
  78. /**
  79. * @ORM\Column(type="datetime")
  80. */
  81. protected $dataCreazione;
  82.  
  83.  
  84. /**
  85. * @ORM\ManyToOne(targetEntity="Servizio", inversedBy="servizioProdotti")
  86. */
  87. private $servizio;
  88.  
  89. public function __toString() {
  90. return $this->servizio;
  91. }
  92.  
  93.  
  94.  
  95. public function __construct(){
  96. parent::__construct();
  97. $this->dataCreazione = new \DateTime();
  98. }
  99.  
  100. /**
  101. * Set dataCreazione
  102. *
  103. * @param \DateTime $dataCreazione
  104. *
  105. * @return Utente
  106. */
  107. public function setDataCreazione($dataCreazione)
  108. {
  109. $this->dataCreazione = $dataCreazione;
  110.  
  111. return $this;
  112. }
  113.  
  114. /**
  115. * Get dataCreazione
  116. *
  117. * @return \DateTime
  118. */
  119. public function getDataCreazione()
  120. {
  121. return $this->dataCreazione;
  122. }
  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 nome.
  138. *
  139. * @param string $nome
  140. *
  141. * @return ServizioProdotto
  142. */
  143. public function setNome($nome)
  144. {
  145. $this->nome = $nome;
  146.  
  147. return $this;
  148. }
  149.  
  150. /**
  151. * Get nome.
  152. *
  153. * @return string
  154. */
  155. public function getNome()
  156. {
  157. return $this->nome;
  158. }
  159.  
  160. /**
  161. * Set nomeVisibile.
  162. *
  163. * @param string $nomeVisibile
  164. *
  165. * @return ServizioProdotto
  166. */
  167. public function setNomeVisibile($nomeVisibile)
  168. {
  169. $this->nome_visibile = $nomeVisibile;
  170.  
  171. return $this;
  172. }
  173.  
  174. /**
  175. * Get nomeVisibile.
  176. *
  177. * @return string
  178. */
  179. public function getNomeVisibile()
  180. {
  181. return $this->nome_visibile;
  182. }
  183.  
  184. /**
  185. * Set attivo.
  186. *
  187. * @param int $attivo
  188. *
  189. * @return ServizioProdotto
  190. */
  191. public function setAttivo($attivo)
  192. {
  193. $this->attivo = $attivo;
  194.  
  195. return $this;
  196. }
  197.  
  198. /**
  199. * Get attivo.
  200. *
  201. * @return int
  202. */
  203. public function getAttivo()
  204. {
  205. return $this->attivo;
  206. }
  207.  
  208. /**
  209. * Set costoPromo.
  210. *
  211. * @param float|null $costoPromo
  212. *
  213. * @return ServizioProdotto
  214. */
  215. public function setCostoPromo($costoPromo = null)
  216. {
  217. $this->costo_promo = $costoPromo;
  218.  
  219. return $this;
  220. }
  221.  
  222. /**
  223. * Get costoPromo.
  224. *
  225. * @return float|null
  226. */
  227. public function getCostoPromo()
  228. {
  229. return $this->costo_promo;
  230. }
  231.  
  232. /**
  233. * Set costoCliente.
  234. *
  235. * @param float $costoCliente
  236. *
  237. * @return ServizioProdotto
  238. */
  239. public function setCostoCliente($costoCliente)
  240. {
  241. $this->costo_cliente = $costoCliente;
  242.  
  243. return $this;
  244. }
  245.  
  246. /**
  247. * Get costoCliente.
  248. *
  249. * @return float
  250. */
  251. public function getCostoCliente()
  252. {
  253. return $this->costo_cliente;
  254. }
  255.  
  256. /**
  257. * Set costoFornitore.
  258. *
  259. * @param float|null $costoFornitore
  260. *
  261. * @return ServizioProdotto
  262. */
  263. public function setCostoFornitore($costoFornitore = null)
  264. {
  265. $this->costo_fornitore = $costoFornitore;
  266.  
  267. return $this;
  268. }
  269.  
  270. /**
  271. * Get costoFornitore.
  272. *
  273. * @return float|null
  274. */
  275. public function getCostoFornitore()
  276. {
  277. return $this->costo_fornitore;
  278. }
  279.  
  280. /**
  281. * Set costoReale.
  282. *
  283. * @param float $costoReale
  284. *
  285. * @return ServizioProdotto
  286. */
  287. public function setCostoReale($costoReale)
  288. {
  289. $this->costo_reale = $costoReale;
  290.  
  291. return $this;
  292. }
  293.  
  294. /**
  295. * Get costoReale.
  296. *
  297. * @return float
  298. */
  299. public function getCostoReale()
  300. {
  301. return $this->costo_reale;
  302. }
  303.  
  304. /**
  305. * Set guadagno.
  306. *
  307. * @param float $guadagno
  308. *
  309. * @return ServizioProdotto
  310. */
  311. public function setGuadagno($guadagno)
  312. {
  313. $this->guadagno = $guadagno;
  314.  
  315. return $this;
  316. }
  317.  
  318. /**
  319. * Get guadagno.
  320. *
  321. * @return float
  322. */
  323. public function getGuadagno()
  324. {
  325. return $this->guadagno;
  326. }
  327.  
  328. /**
  329. * Set quantitaPromo.
  330. *
  331. * @param float $quantitaPromo
  332. *
  333. * @return ServizioProdotto
  334. */
  335. public function setQuantitaPromo($quantitaPromo)
  336. {
  337. $this->quantita_promo = $quantitaPromo;
  338.  
  339. return $this;
  340. }
  341.  
  342. /**
  343. * Get quantitaPromo.
  344. *
  345. * @return float
  346. */
  347. public function getQuantitaPromo()
  348. {
  349. return $this->quantita_promo;
  350. }
  351.  
  352. /**
  353. * Set servizio.
  354. *
  355. * @param \AppBundle\Entity\Servizio|null $servizio
  356. *
  357. * @return ServizioProdotto
  358. */
  359. public function setServizio(\AppBundle\Entity\Servizio $servizio = null)
  360. {
  361. $this->servizio = $servizio;
  362.  
  363. return $this;
  364. }
  365.  
  366. /**
  367. * Get servizio.
  368. *
  369. * @return \AppBundle\Entity\Servizio|null
  370. */
  371. public function getServizio()
  372. {
  373. return $this->servizio;
  374. }
  375. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement