src/Entity/Destinazioni.php line 15

  1. <?php
  2. namespace App\Entity;
  3. use App\Model\Colonna;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Destinazioni
  8.  *
  9.  * @ORM\Table(name="destinazioni")
  10.  * @ORM\Entity(repositoryClass="App\Repository\DestinazioniRepository")
  11.  */
  12. class Destinazioni
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="User")
  24.      * @ORM\JoinColumn(name="azienda_id", referencedColumnName="id", onDelete="CASCADE")
  25.      */
  26.     private $azienda;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="univoco_indirizzo", type="text", nullable=true)
  31.      */
  32.     private $univocoIndirizzo;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="ragione_sociale", type="string", length=255, nullable=true)
  37.      */
  38.     private $ragioneSociale;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="indirizzo", type="text", nullable=true)
  43.      */
  44.     private $indirizzo;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="citta", type="text", nullable=true)
  49.      */
  50.     private $citta;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="provincia", type="text", nullable=true)
  55.      */
  56.     private $provincia;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="cap", type="text", nullable=true)
  61.      */
  62.     private $cap;
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="telefono", type="text", nullable=true)
  67.      */
  68.     private $telefono;
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(name="stato", type="text", nullable=true)
  73.      */
  74.     private $stato;
  75.     /**
  76.      * @var string
  77.      *
  78.      * @ORM\Column(name="email", type="text", nullable=true)
  79.      */
  80.     private $email;
  81.     /**
  82.      * @var string
  83.      *
  84.      * @ORM\Column(name="codice_gestionale", type="text", nullable=true)
  85.      */
  86.     private $codiceGestionale;
  87.     /**
  88.      * @var string
  89.      *
  90.      * @ORM\Column(name="denominazione_destinazione_diversa", type="text", nullable=true)
  91.      */
  92.     private $denominazioneDestinazioneDiversa;
  93.     /**
  94.      * @var \DateTime
  95.      *
  96.      * @ORM\Column(name="data_modifica", type="datetime")
  97.      */
  98.     private $dataModifica;
  99.     /**
  100.      * @var \DateTime
  101.      *
  102.      * @ORM\Column(name="data_creazione", type="datetime")
  103.      */
  104.     private $dataCreazione;
  105.     /**
  106.      * @ORM\ManyToOne(targetEntity="User")
  107.      * @ORM\JoinColumn(name="utente_id", referencedColumnName="id", onDelete="SET NULL")
  108.      */
  109.     private $utente;
  110.     public static function CreaListaColonne($padre ""){
  111.         return array(
  112.             'id' => Colonna::CreaColonna('id''int''Id'$padre''''''falsenull ),
  113.             'azienda' => Colonna::CreaColonna('azienda''int''Azienda'$padre''''''falsenull ),
  114.             'univocoIndirizzo' => Colonna::CreaColonna('univocoIndirizzo''string''Univoco indirizzo'$padre''''''falsenull ),
  115.             'ragioneSociale' => Colonna::CreaColonna('ragioneSociale''string''Ragione sociale'$padre''''''falsenull ),
  116.             'indirizzo' => Colonna::CreaColonna('indirizzo''string''Indirizzo'$padre''''''falsenull ),
  117.             'citta' => Colonna::CreaColonna('citta''string''Città'$padre''''''falsenull ),
  118.             'provincia' => Colonna::CreaColonna('provincia''string''Provincia'$padre''''''falsenull ),
  119.             'cap' => Colonna::CreaColonna('cap''string''Cap'$padre''''''falsenull ),
  120.             'telefono' => Colonna::CreaColonna('telefono''string''Telefono'$padre''''''falsenull ),
  121.             'stato' => Colonna::CreaColonna('stato''string''Stato'$padre''''''falsenull ),
  122.             'email' => Colonna::CreaColonna('email''string''Email'$padre''''''falsenull ),
  123.             'codiceGestionale' => Colonna::CreaColonna('codiceGestionale''string''Codice gestionale'$padre''''''falsenull ),
  124.             'denominazioneDestinazioneDiversa' => Colonna::CreaColonna('denominazioneDestinazioneDiversa''string''Denominazione destinazione diversa'$padre''''''falsenull ),
  125.             'dataModifica' => Colonna::CreaColonna('dataModifica''datetime''Data modifica'$padre''''''falsenull ),
  126.             'dataCreazione' => Colonna::CreaColonna('dataCreazione''datetime''Data creazione'$padre''''''falsenull ),
  127.             'utente' => Colonna::CreaColonna('utente''int''Utente'$padre''''''falsenull ),
  128.         );
  129.     }
  130.     public function getId(): ?int
  131.     {
  132.         return $this->id;
  133.     }
  134.     public function getUnivocoIndirizzo(): ?string
  135.     {
  136.         return $this->univocoIndirizzo;
  137.     }
  138.     public function setUnivocoIndirizzo(?string $univocoIndirizzo): static
  139.     {
  140.         $this->univocoIndirizzo $univocoIndirizzo;
  141.         return $this;
  142.     }
  143.     public function getRagioneSociale(): ?string
  144.     {
  145.         return $this->ragioneSociale;
  146.     }
  147.     public function setRagioneSociale(?string $ragioneSociale): static
  148.     {
  149.         $this->ragioneSociale $ragioneSociale;
  150.         return $this;
  151.     }
  152.     public function getIndirizzo(): ?string
  153.     {
  154.         return $this->indirizzo;
  155.     }
  156.     public function setIndirizzo(?string $indirizzo): static
  157.     {
  158.         $this->indirizzo $indirizzo;
  159.         return $this;
  160.     }
  161.     public function getCitta(): ?string
  162.     {
  163.         return $this->citta;
  164.     }
  165.     public function setCitta(?string $citta): static
  166.     {
  167.         $this->citta $citta;
  168.         return $this;
  169.     }
  170.     public function getProvincia(): ?string
  171.     {
  172.         return $this->provincia;
  173.     }
  174.     public function setProvincia(?string $provincia): static
  175.     {
  176.         $this->provincia $provincia;
  177.         return $this;
  178.     }
  179.     public function getCap(): ?string
  180.     {
  181.         return $this->cap;
  182.     }
  183.     public function setCap(?string $cap): static
  184.     {
  185.         $this->cap $cap;
  186.         return $this;
  187.     }
  188.     public function getTelefono(): ?string
  189.     {
  190.         return $this->telefono;
  191.     }
  192.     public function setTelefono(?string $telefono): static
  193.     {
  194.         $this->telefono $telefono;
  195.         return $this;
  196.     }
  197.     public function getStato(): ?string
  198.     {
  199.         return $this->stato;
  200.     }
  201.     public function setStato(?string $stato): static
  202.     {
  203.         $this->stato $stato;
  204.         return $this;
  205.     }
  206.     public function getEmail(): ?string
  207.     {
  208.         return $this->email;
  209.     }
  210.     public function setEmail(?string $email): static
  211.     {
  212.         $this->email $email;
  213.         return $this;
  214.     }
  215.     public function getCodiceGestionale(): ?string
  216.     {
  217.         return $this->codiceGestionale;
  218.     }
  219.     public function setCodiceGestionale(?string $codiceGestionale): static
  220.     {
  221.         $this->codiceGestionale $codiceGestionale;
  222.         return $this;
  223.     }
  224.     public function getDenominazioneDestinazioneDiversa(): ?string
  225.     {
  226.         return $this->denominazioneDestinazioneDiversa;
  227.     }
  228.     public function setDenominazioneDestinazioneDiversa(?string $denominazioneDestinazioneDiversa): static
  229.     {
  230.         $this->denominazioneDestinazioneDiversa $denominazioneDestinazioneDiversa;
  231.         return $this;
  232.     }
  233.     public function getDataModifica(): ?\DateTimeInterface
  234.     {
  235.         return $this->dataModifica;
  236.     }
  237.     public function setDataModifica(\DateTimeInterface $dataModifica): static
  238.     {
  239.         $this->dataModifica $dataModifica;
  240.         return $this;
  241.     }
  242.     public function getDataCreazione(): ?\DateTimeInterface
  243.     {
  244.         return $this->dataCreazione;
  245.     }
  246.     public function setDataCreazione(\DateTimeInterface $dataCreazione): static
  247.     {
  248.         $this->dataCreazione $dataCreazione;
  249.         return $this;
  250.     }
  251.     public function getAzienda(): ?User
  252.     {
  253.         return $this->azienda;
  254.     }
  255.     public function setAzienda(?User $azienda): static
  256.     {
  257.         $this->azienda $azienda;
  258.         return $this;
  259.     }
  260.     public function getUtente(): ?User
  261.     {
  262.         return $this->utente;
  263.     }
  264.     public function setUtente(?User $utente): static
  265.     {
  266.         $this->utente $utente;
  267.         return $this;
  268.     }
  269. }