src/Entity/Offerte.php line 19
<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/*** Offerte** @ORM\Table(name="offerte", indexes={* @ORM\Index(name="offerte_codice_idx", columns={"codice_cliente"}),* @ORM\Index(name="offerte_codice_numero_idx", columns={"codice_cliente","documento","numero","anno"})* })* @ORM\Entity(repositoryClass="App\Repository\OfferteRepository")*/class Offerte{/*** @var int** @ORM\Column(name="id", type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @ORM\OneToMany(targetEntity="App\Entity\OfferteRighe", mappedBy="offerta", cascade={"remove"}, orphanRemoval=true)*/private $righe;/*** @var string** @ORM\Column(name="codice_cliente", type="string", length=100, nullable=true)*/private $codiceCliente;/*** @var string** @ORM\Column(name="ragione_sociale", type="string", length=255, nullable=true)*/private $ragioneSociale;/*** @var string** @ORM\Column(name="città ", type="string", length=255, nullable=true)*/private $citta;/*** @var string** @ORM\Column(name="provincia", type="string", length=255, nullable=true)*/private $provincia;/*** @var string** @ORM\Column(name="cap", type="string", length=255, nullable=true)*/private $cap;/*** @var string** @ORM\Column(name="indirizzo", type="string", length=255, nullable=true)*/private $indirizzo;/*** @var string** @ORM\Column(name="telefono", type="string", length=255, nullable=true)*/private $telefono;/*** @var string** @ORM\Column(name="nazione", type="string", length=255, nullable=true)*/private $nazione;/*** @var string** @ORM\Column(name="codice_fiscale", type="string", length=255, nullable=true)*/private $codiceFiscale;/*** @var string** @ORM\Column(name="partita_iva", type="string", length=255, nullable=true)*/private $partitaIva;/*** @var string** @ORM\Column(name="destinazione_ragione_sociale", type="string", length=255, nullable=true)*/private $destinazioneRagioneSociale;/*** @var string** @ORM\Column(name="destinazione_città ", type="string", length=255, nullable=true)*/private $destinazioneCitta;/*** @var string** @ORM\Column(name="destinazione_provincia", type="string", length=255, nullable=true)*/private $destinazioneProvincia;/*** @var string** @ORM\Column(name="destinazione_cap", type="string", length=255, nullable=true)*/private $destinazioneCap;/*** @var string** @ORM\Column(name="destinazione_indirizzo", type="string", length=255, nullable=true)*/private $destinazioneIndirizzo;/*** @var string** @ORM\Column(name="destinazione_nazione", type="string", length=255, nullable=true)*/private $destinazioneNazione;/*** @var string** @ORM\Column(name="note", type="text", nullable=true)*/private $note;/*** @var string** @ORM\Column(name="note_aziendali", type="text", nullable=true)*/private $noteAziendali;/*** @var string** @ORM\Column(name="riferimento", type="string", length=255, nullable=true)*/private $riferimento;/*** @ORM\ManyToOne(targetEntity="App\Entity\Anagrafiche")* @ORM\JoinColumn(name="collegamento_anagrafica_id", referencedColumnName="id", onDelete="SET NULL")*/private $collegamentoAnagrafica;/*** @var string** @ORM\Column(name="descrizione_breve", type="string", length=255, nullable=true)*/private $descrizioneBreve;/*** @var string** @ORM\Column(name="descrizione_lunga", type="text", nullable=true)*/private $descrizioneLunga;/*** @var \DateTime** @ORM\Column(name="data_documento", type="datetime", nullable=true)*/private $dataDocumento;/*** @var \DateTime** @ORM\Column(name="data_creazione", type="datetime")*/private $dataCreazione;/*** @var \DateTime** @ORM\Column(name="data_modifica", type="datetime")*/private $dataModifica;/*** @var \DateTime** @ORM\Column(name="data_ultimo_invio_riepilogo_offerta", type="datetime", nullable=true)*/private $dataUltimoInvioRiepilogoOfferta;/*** @ORM\ManyToOne(targetEntity="User")* @ORM\JoinColumn(name="utente_modifica_id", referencedColumnName="id", onDelete="SET NULL")*/private $utenteModifica;/*** @var string** @ORM\Column(name="moneta", type="string", length=10, nullable=true)*/private $moneta;/*** @var string** @ORM\Column(name="importo", type="decimal", precision=18, scale=5, nullable=true)*/private $importo;/*** @var boolean** @ORM\Column(name="importante", type="boolean", nullable=true)*/private $importante;/*** @var string** @ORM\Column(name="stato", type="string", length=255, nullable=true)*/private $stato;/*** @var string** @ORM\Column(name="documento", type="string", length=50, nullable=true)*/private $documento;/*** @var string** @ORM\Column(name="path_pdf_originale", type="string", length=255, nullable=true)*/private $pathPdfOriginale;/*** @var string** @ORM\Column(name="numero", type="string", length=50, nullable=true)*/private $numero;/*** @var string** @ORM\Column(name="anno", type="string", length=4, nullable=true)*/private $anno;/*** @var array** @ORM\Column(name="permessi_lettura", type="simple_array", nullable=true)*/private $permessiLettura;/*** @var array** @ORM\Column(name="permessi_scrittura", type="simple_array", nullable=true)*/private $permessiScrittura;/*** @var \DateTime** @ORM\Column(name="data_eliminazione", type="datetime", nullable=true)*/private $dataEliminazione;/*** @ORM\OneToMany(targetEntity="App\Entity\OfferteAllegati", mappedBy="offerta", cascade={"remove"}, orphanRemoval=true)*/private $allegati;/*** @ORM\OneToMany(targetEntity="App\Entity\OfferteContattiClienti", mappedBy="offerta", cascade={"remove"}, orphanRemoval=true)*/private $contattiClienti;/*** @ORM\OneToMany(targetEntity="App\Entity\OfferteRegistroEventi", mappedBy="offerta", cascade={"remove"}, orphanRemoval=true)* @ORM\OrderBy({"dataModifica"="DESC"})*/private $registroEventi;/*** Constructor*/public function __construct(){$this->righe = new \Doctrine\Common\Collections\ArrayCollection();$this->allegati = new \Doctrine\Common\Collections\ArrayCollection();$this->contattiClienti = new \Doctrine\Common\Collections\ArrayCollection();$this->registroEventi = new \Doctrine\Common\Collections\ArrayCollection();}/*** @param $numeroRiga* @return OfferteRighe|mixed|null*/public function RitornaRigaDaNumero($numeroRiga){/** @var OfferteRighe $r */foreach ($this->getRighe() as $r){if($r->getNumeroRiga() == $numeroRiga){return $r;}}return null;}/*** @param $identificativo* @return OfferteRegistroEventi|mixed|null*/public function RitornaRegistroEventoDaIdentificativo($identificativo){/** @var OfferteRegistroEventi $reg */foreach ($this->getRegistroEventi() as $reg){if($reg->getIdentificativo() == $identificativo)return $reg;}return null;}/*** @param $identificativo* @return OfferteAllegati|mixed|null*/public function RitornaAllegatoDaIdentificativo($identificativo){/** @var OfferteAllegati $all */foreach ($this->getAllegati() as $all){if($all->getIdentificativo() == $identificativo)return $all;}return null;}public function getId(): ?int{return $this->id;}public function getCodiceCliente(): ?string{return $this->codiceCliente;}public function setCodiceCliente(?string $codiceCliente): static{$this->codiceCliente = $codiceCliente;return $this;}public function getRagioneSociale(): ?string{return $this->ragioneSociale;}public function setRagioneSociale(?string $ragioneSociale): static{$this->ragioneSociale = $ragioneSociale;return $this;}public function getDescrizioneBreve(): ?string{return $this->descrizioneBreve;}public function setDescrizioneBreve(?string $descrizioneBreve): static{$this->descrizioneBreve = $descrizioneBreve;return $this;}public function getDescrizioneLunga(): ?string{return $this->descrizioneLunga;}public function setDescrizioneLunga(?string $descrizioneLunga): static{$this->descrizioneLunga = $descrizioneLunga;return $this;}public function getDataDocumento(): ?\DateTimeInterface{return $this->dataDocumento;}public function setDataDocumento(?\DateTimeInterface $dataDocumento): static{$this->dataDocumento = $dataDocumento;return $this;}public function getDataCreazione(): ?\DateTimeInterface{return $this->dataCreazione;}public function setDataCreazione(\DateTimeInterface $dataCreazione): static{$this->dataCreazione = $dataCreazione;return $this;}public function getDataModifica(): ?\DateTimeInterface{return $this->dataModifica;}public function setDataModifica(\DateTimeInterface $dataModifica): static{$this->dataModifica = $dataModifica;return $this;}public function getMoneta(): ?string{return $this->moneta;}public function setMoneta(?string $moneta): static{$this->moneta = $moneta;return $this;}public function getImporto(): ?string{return $this->importo;}public function setImporto(?string $importo): static{$this->importo = $importo;return $this;}public function getImportante(): ?bool{return $this->importante;}public function setImportante(?bool $importante): static{$this->importante = $importante;return $this;}public function getStato(): ?string{return $this->stato;}public function setStato(?string $stato): static{$this->stato = $stato;return $this;}public function getDocumento(): ?string{return $this->documento;}public function setDocumento(?string $documento): static{$this->documento = $documento;return $this;}public function getPathPdfOriginale(): ?string{return $this->pathPdfOriginale;}public function setPathPdfOriginale(?string $pathPdfOriginale): static{$this->pathPdfOriginale = $pathPdfOriginale;return $this;}public function getNumero(): ?string{return $this->numero;}public function setNumero(?string $numero): static{$this->numero = $numero;return $this;}public function getAnno(): ?string{return $this->anno;}public function setAnno(?string $anno): static{$this->anno = $anno;return $this;}public function getPermessiLettura(): ?array{return $this->permessiLettura;}public function setPermessiLettura(?array $permessiLettura): static{$this->permessiLettura = $permessiLettura;return $this;}public function getPermessiScrittura(): ?array{return $this->permessiScrittura;}public function setPermessiScrittura(?array $permessiScrittura): static{$this->permessiScrittura = $permessiScrittura;return $this;}public function getDataEliminazione(): ?\DateTimeInterface{return $this->dataEliminazione;}public function setDataEliminazione(?\DateTimeInterface $dataEliminazione): static{$this->dataEliminazione = $dataEliminazione;return $this;}/*** @return Collection<int, OfferteRighe>*/public function getRighe(): Collection{return $this->righe;}public function addRighe(OfferteRighe $righe): static{if (!$this->righe->contains($righe)) {$this->righe->add($righe);$righe->setOfferta($this);}return $this;}public function removeRighe(OfferteRighe $righe): static{if ($this->righe->removeElement($righe)) {// set the owning side to null (unless already changed)if ($righe->getOfferta() === $this) {$righe->setOfferta(null);}}return $this;}public function getCollegamentoAnagrafica(): ?Anagrafiche{return $this->collegamentoAnagrafica;}public function setCollegamentoAnagrafica(?Anagrafiche $collegamentoAnagrafica): static{$this->collegamentoAnagrafica = $collegamentoAnagrafica;return $this;}public function getUtenteModifica(): ?User{return $this->utenteModifica;}public function setUtenteModifica(?User $utenteModifica): static{$this->utenteModifica = $utenteModifica;return $this;}/*** @return Collection<int, OfferteAllegati>*/public function getAllegati(): Collection{return $this->allegati;}public function addAllegati(OfferteAllegati $allegati): static{if (!$this->allegati->contains($allegati)) {$this->allegati->add($allegati);$allegati->setOfferta($this);}return $this;}public function removeAllegati(OfferteAllegati $allegati): static{if ($this->allegati->removeElement($allegati)) {// set the owning side to null (unless already changed)if ($allegati->getOfferta() === $this) {$allegati->setOfferta(null);}}return $this;}/*** @return Collection<int, OfferteContattiClienti>*/public function getContattiClienti(): Collection{return $this->contattiClienti;}public function addContattiClienti(OfferteContattiClienti $contattiClienti): static{if (!$this->contattiClienti->contains($contattiClienti)) {$this->contattiClienti->add($contattiClienti);$contattiClienti->setOfferta($this);}return $this;}public function removeContattiClienti(OfferteContattiClienti $contattiClienti): static{if ($this->contattiClienti->removeElement($contattiClienti)) {// set the owning side to null (unless already changed)if ($contattiClienti->getOfferta() === $this) {$contattiClienti->setOfferta(null);}}return $this;}/*** @return Collection<int, OfferteRegistroEventi>*/public function getRegistroEventi(): Collection{return $this->registroEventi;}public function addRegistroEventi(OfferteRegistroEventi $registroEventi): static{if (!$this->registroEventi->contains($registroEventi)) {$this->registroEventi->add($registroEventi);$registroEventi->setOfferta($this);}return $this;}public function removeRegistroEventi(OfferteRegistroEventi $registroEventi): static{if ($this->registroEventi->removeElement($registroEventi)) {// set the owning side to null (unless already changed)if ($registroEventi->getOfferta() === $this) {$registroEventi->setOfferta(null);}}return $this;}public function getCitta(): ?string{return $this->citta;}public function setCitta(?string $citta): static{$this->citta = $citta;return $this;}public function getProvincia(): ?string{return $this->provincia;}public function setProvincia(?string $provincia): static{$this->provincia = $provincia;return $this;}public function getCap(): ?string{return $this->cap;}public function setCap(?string $cap): static{$this->cap = $cap;return $this;}public function getIndirizzo(): ?string{return $this->indirizzo;}public function setIndirizzo(?string $indirizzo): static{$this->indirizzo = $indirizzo;return $this;}public function getTelefono(): ?string{return $this->telefono;}public function setTelefono(?string $telefono): static{$this->telefono = $telefono;return $this;}public function getNazione(): ?string{return $this->nazione;}public function setNazione(?string $nazione): static{$this->nazione = $nazione;return $this;}public function getCodiceFiscale(): ?string{return $this->codiceFiscale;}public function setCodiceFiscale(?string $codiceFiscale): static{$this->codiceFiscale = $codiceFiscale;return $this;}public function getPartitaIva(): ?string{return $this->partitaIva;}public function setPartitaIva(?string $partitaIva): static{$this->partitaIva = $partitaIva;return $this;}public function getDestinazioneRagioneSociale(): ?string{return $this->destinazioneRagioneSociale;}public function setDestinazioneRagioneSociale(?string $destinazioneRagioneSociale): static{$this->destinazioneRagioneSociale = $destinazioneRagioneSociale;return $this;}public function getDestinazioneCitta(): ?string{return $this->destinazioneCitta;}public function setDestinazioneCitta(?string $destinazioneCitta): static{$this->destinazioneCitta = $destinazioneCitta;return $this;}public function getDestinazioneProvincia(): ?string{return $this->destinazioneProvincia;}public function setDestinazioneProvincia(?string $destinazioneProvincia): static{$this->destinazioneProvincia = $destinazioneProvincia;return $this;}public function getDestinazioneCap(): ?string{return $this->destinazioneCap;}public function setDestinazioneCap(?string $destinazioneCap): static{$this->destinazioneCap = $destinazioneCap;return $this;}public function getDestinazioneIndirizzo(): ?string{return $this->destinazioneIndirizzo;}public function setDestinazioneIndirizzo(?string $destinazioneIndirizzo): static{$this->destinazioneIndirizzo = $destinazioneIndirizzo;return $this;}public function getDestinazioneNazione(): ?string{return $this->destinazioneNazione;}public function setDestinazioneNazione(?string $destinazioneNazione): static{$this->destinazioneNazione = $destinazioneNazione;return $this;}public function getNote(): ?string{return $this->note;}public function setNote(?string $note): static{$this->note = $note;return $this;}public function isImportante(): ?bool{return $this->importante;}public function getNoteAziendali(): ?string{return $this->noteAziendali;}public function setNoteAziendali(?string $noteAziendali): static{$this->noteAziendali = $noteAziendali;return $this;}public function getRiferimento(): ?string{return $this->riferimento;}public function setRiferimento(?string $riferimento): static{$this->riferimento = $riferimento;return $this;}public function getDataUltimoInvioRiepilogoOfferta(): ?\DateTimeInterface{return $this->dataUltimoInvioRiepilogoOfferta;}public function setDataUltimoInvioRiepilogoOfferta(?\DateTimeInterface $dataUltimoInvioRiepilogoOfferta): static{$this->dataUltimoInvioRiepilogoOfferta = $dataUltimoInvioRiepilogoOfferta;return $this;}}