Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- use Symfony\Component\Validator\Constraints as Assert;
- /**
- * @ORM\Entity
- * @ORM\Table()
- */
- class Operaio
- {
- /**
- * @ORM\Id
- * @ORM\Column(type="integer")
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- *
- * @ORM\OneToOne(targetEntity="Utente", inversedBy="operaio", cascade={"persist"})
- * @ORM\JoinColumn(nullable=true)
- *
- */
- protected $utente;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $nome;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $cognome;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $ragione_sociale;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $telefono;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $cellulare;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $indirizzo;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $citta;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $cap;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $nazionalita;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $codice_fiscale;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $partita_iva;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set nome
- *
- * @param string $nome
- *
- * @return Operaio
- */
- public function setNome($nome)
- {
- $this->nome = $nome;
- return $this;
- }
- /**
- * Get nome
- *
- * @return string
- */
- public function getNome()
- {
- return $this->nome;
- }
- /**
- * Set cognome
- *
- * @param string $cognome
- *
- * @return Operaio
- */
- public function setCognome($cognome)
- {
- $this->cognome = $cognome;
- return $this;
- }
- /**
- * Get cognome
- *
- * @return string
- */
- public function getCognome()
- {
- return $this->cognome;
- }
- /**
- * Set ragioneSociale
- *
- * @param string $ragioneSociale
- *
- * @return Operaio
- */
- public function setRagioneSociale($ragioneSociale)
- {
- $this->ragione_sociale = $ragioneSociale;
- return $this;
- }
- /**
- * Get ragioneSociale
- *
- * @return string
- */
- public function getRagioneSociale()
- {
- return $this->ragione_sociale;
- }
- /**
- * Set telefono
- *
- * @param string $telefono
- *
- * @return Operaio
- */
- public function setTelefono($telefono)
- {
- $this->telefono = $telefono;
- return $this;
- }
- /**
- * Get telefono
- *
- * @return string
- */
- public function getTelefono()
- {
- return $this->telefono;
- }
- /**
- * Set cellulare
- *
- * @param string $cellulare
- *
- * @return Operaio
- */
- public function setCellulare($cellulare)
- {
- $this->cellulare = $cellulare;
- return $this;
- }
- /**
- * Get cellulare
- *
- * @return string
- */
- public function getCellulare()
- {
- return $this->cellulare;
- }
- /**
- * Set indirizzo
- *
- * @param string $indirizzo
- *
- * @return Operaio
- */
- public function setIndirizzo($indirizzo)
- {
- $this->indirizzo = $indirizzo;
- return $this;
- }
- /**
- * Get indirizzo
- *
- * @return string
- */
- public function getIndirizzo()
- {
- return $this->indirizzo;
- }
- /**
- * Set citta
- *
- * @param string $citta
- *
- * @return Operaio
- */
- public function setCitta($citta)
- {
- $this->citta = $citta;
- return $this;
- }
- /**
- * Get citta
- *
- * @return string
- */
- public function getCitta()
- {
- return $this->citta;
- }
- /**
- * Set cap
- *
- * @param string $cap
- *
- * @return Operaio
- */
- public function setCap($cap)
- {
- $this->cap = $cap;
- return $this;
- }
- /**
- * Get cap
- *
- * @return string
- */
- public function getCap()
- {
- return $this->cap;
- }
- /**
- * Set nazionalita
- *
- * @param string $nazionalita
- *
- * @return Operaio
- */
- public function setNazionalita($nazionalita)
- {
- $this->nazionalita = $nazionalita;
- return $this;
- }
- /**
- * Get nazionalita
- *
- * @return string
- */
- public function getNazionalita()
- {
- return $this->nazionalita;
- }
- /**
- * Set codiceFiscale
- *
- * @param string $codiceFiscale
- *
- * @return Operaio
- */
- public function setCodiceFiscale($codiceFiscale)
- {
- $this->codice_fiscale = $codiceFiscale;
- return $this;
- }
- /**
- * Get codiceFiscale
- *
- * @return string
- */
- public function getCodiceFiscale()
- {
- return $this->codice_fiscale;
- }
- /**
- * Set partitaIva
- *
- * @param string $partitaIva
- *
- * @return Operaio
- */
- public function setPartitaIva($partitaIva)
- {
- $this->partita_iva = $partitaIva;
- return $this;
- }
- /**
- * Get partitaIva
- *
- * @return string
- */
- public function getPartitaIva()
- {
- return $this->partita_iva;
- }
- /**
- * Set utente
- *
- * @param \AppBundle\Entity\Utente $utente
- *
- * @return Operaio
- */
- public function setUtente(\AppBundle\Entity\Utente $utente = null)
- {
- $this->utente = $utente;
- return $this;
- }
- /**
- * Get utente
- *
- * @return \AppBundle\Entity\Utente
- */
- public function getUtente()
- {
- return $this->utente;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement