Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity(repositoryClass="AppBundle\Repository\ServizioProdottoRepository")
- * @ORM\Entity
- * @ORM\Table()
- */
- class ServizioProdotto
- {
- /**
- * @ORM\Id
- * @ORM\Column(type="integer")
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @ORM\Column(type="string")
- */
- protected $nome;
- /**
- * @ORM\Column(type="string")
- */
- protected $nome_visibile;
- /**
- * @ORM\Column(type="integer")
- */
- protected $attivo;
- /**
- * @ORM\Column(type="float", nullable=true)
- */
- protected $costo_promo;
- /**
- * @ORM\Column(type="float")
- */
- protected $costo_cliente;
- /**
- * @ORM\Column(type="float", nullable=true)
- */
- protected $costo_fornitore;
- /**
- * @ORM\Column(type="float")
- */
- protected $costo_reale;
- /**
- * @ORM\Column(type="float")
- */
- protected $guadagno;
- /**
- * @ORM\Column(type="float")
- */
- protected $quantita_promo;
- /**
- * @ORM\Column(type="datetime")
- */
- protected $dataCreazione;
- /**
- * @ORM\ManyToOne(targetEntity="Servizio", inversedBy="servizioProdotti")
- */
- private $servizio;
- public function __toString() {
- return $this->servizio;
- }
- public function __construct(){
- parent::__construct();
- $this->dataCreazione = new \DateTime();
- }
- /**
- * Set dataCreazione
- *
- * @param \DateTime $dataCreazione
- *
- * @return Utente
- */
- public function setDataCreazione($dataCreazione)
- {
- $this->dataCreazione = $dataCreazione;
- return $this;
- }
- /**
- * Get dataCreazione
- *
- * @return \DateTime
- */
- public function getDataCreazione()
- {
- return $this->dataCreazione;
- }
- /**
- * Get id.
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set nome.
- *
- * @param string $nome
- *
- * @return ServizioProdotto
- */
- public function setNome($nome)
- {
- $this->nome = $nome;
- return $this;
- }
- /**
- * Get nome.
- *
- * @return string
- */
- public function getNome()
- {
- return $this->nome;
- }
- /**
- * Set nomeVisibile.
- *
- * @param string $nomeVisibile
- *
- * @return ServizioProdotto
- */
- public function setNomeVisibile($nomeVisibile)
- {
- $this->nome_visibile = $nomeVisibile;
- return $this;
- }
- /**
- * Get nomeVisibile.
- *
- * @return string
- */
- public function getNomeVisibile()
- {
- return $this->nome_visibile;
- }
- /**
- * Set attivo.
- *
- * @param int $attivo
- *
- * @return ServizioProdotto
- */
- public function setAttivo($attivo)
- {
- $this->attivo = $attivo;
- return $this;
- }
- /**
- * Get attivo.
- *
- * @return int
- */
- public function getAttivo()
- {
- return $this->attivo;
- }
- /**
- * Set costoPromo.
- *
- * @param float|null $costoPromo
- *
- * @return ServizioProdotto
- */
- public function setCostoPromo($costoPromo = null)
- {
- $this->costo_promo = $costoPromo;
- return $this;
- }
- /**
- * Get costoPromo.
- *
- * @return float|null
- */
- public function getCostoPromo()
- {
- return $this->costo_promo;
- }
- /**
- * Set costoCliente.
- *
- * @param float $costoCliente
- *
- * @return ServizioProdotto
- */
- public function setCostoCliente($costoCliente)
- {
- $this->costo_cliente = $costoCliente;
- return $this;
- }
- /**
- * Get costoCliente.
- *
- * @return float
- */
- public function getCostoCliente()
- {
- return $this->costo_cliente;
- }
- /**
- * Set costoFornitore.
- *
- * @param float|null $costoFornitore
- *
- * @return ServizioProdotto
- */
- public function setCostoFornitore($costoFornitore = null)
- {
- $this->costo_fornitore = $costoFornitore;
- return $this;
- }
- /**
- * Get costoFornitore.
- *
- * @return float|null
- */
- public function getCostoFornitore()
- {
- return $this->costo_fornitore;
- }
- /**
- * Set costoReale.
- *
- * @param float $costoReale
- *
- * @return ServizioProdotto
- */
- public function setCostoReale($costoReale)
- {
- $this->costo_reale = $costoReale;
- return $this;
- }
- /**
- * Get costoReale.
- *
- * @return float
- */
- public function getCostoReale()
- {
- return $this->costo_reale;
- }
- /**
- * Set guadagno.
- *
- * @param float $guadagno
- *
- * @return ServizioProdotto
- */
- public function setGuadagno($guadagno)
- {
- $this->guadagno = $guadagno;
- return $this;
- }
- /**
- * Get guadagno.
- *
- * @return float
- */
- public function getGuadagno()
- {
- return $this->guadagno;
- }
- /**
- * Set quantitaPromo.
- *
- * @param float $quantitaPromo
- *
- * @return ServizioProdotto
- */
- public function setQuantitaPromo($quantitaPromo)
- {
- $this->quantita_promo = $quantitaPromo;
- return $this;
- }
- /**
- * Get quantitaPromo.
- *
- * @return float
- */
- public function getQuantitaPromo()
- {
- return $this->quantita_promo;
- }
- /**
- * Set servizio.
- *
- * @param \AppBundle\Entity\Servizio|null $servizio
- *
- * @return ServizioProdotto
- */
- public function setServizio(\AppBundle\Entity\Servizio $servizio = null)
- {
- $this->servizio = $servizio;
- return $this;
- }
- /**
- * Get servizio.
- *
- * @return \AppBundle\Entity\Servizio|null
- */
- public function getServizio()
- {
- return $this->servizio;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement