src/Entity/User.php line 23
<?php// src/App/Entity/User.phpnamespace App\Entity;use App\Model\Colonna;use App\Model\Entita\RigaCarrello;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping\AttributeOverride;use Doctrine\ORM\Mapping\AttributeOverrides;use Doctrine\ORM\Mapping\PostLoad;use Doctrine\ORM\Mapping\PostPersist;use Doctrine\ORM\Mapping\PrePersist;use Doctrine\ORM\Mapping\PreUpdate;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;use Symfony\Component\Security\Core\User\UserInterface;/*** @ORM\Entity* @ORM\Table(name="fos_user")*/class User implements UserInterface, PasswordAuthenticatedUserInterface{/*** @ORM\Id* @ORM\Column(type="integer", name="id")* @ORM\GeneratedValue(strategy="AUTO")*/protected $id;/*** @ORM\Column(type="json")*/private $roles = [];/*** @ORM\Column(type="string", length=180, unique=true)*/private $username;/*** @ORM\Column(type="text", nullable=true)*/private $tokenResetPassword;/*** @var \DateTime** @ORM\Column(name="data_richiesta_reset_password", type="datetime", nullable=true)*/private $dataRichiestaResetPassword;/*** @ORM\Column(type="string", length=180, unique=false, nullable=true)*/private $email;/*** @var string The hashed password* @ORM\Column(type="string")*/private $password;/*** @var string** @ORM\Column(name="ragione_sociale", type="string", length=255, nullable=true)*/private $ragioneSociale;/*** @var string** @ORM\Column(name="nome", type="string", length=255, nullable=true)*/private $nome;/*** @var string** @ORM\Column(name="identificativo_utente", type="string", length=255, nullable=true)*/private $identificativoUtente;/*** @var string** @ORM\Column(name="altri_dati", type="text", nullable=true)*/private $altriDati;/*** @var string** @ORM\Column(name="cognome", type="string", length=255, nullable=true)*/private $cognome;/*** @var string** @ORM\Column(name="codice_cliente", type="text", nullable=true)*/private $codiceCliente;/*** @var string** @ORM\Column(name="codice_fornitore", type="string", length=255, nullable=true)*/private $codiceFornitore;/*** @var string** @ORM\Column(name="codice_listino_vendita", type="text", nullable=true)*/private $codiceListinoVendita;/*** @var string** @ORM\Column(name="partita_iva", type="string", length=255, nullable=true)*/private $partitaIva;/*** @var string** @ORM\Column(name="codice_fiscale", type="string", length=255, nullable=true)*/private $codiceFiscale;/*** @var string** @ORM\Column(name="indirizzo", type="string", length=255, nullable=true)*/private $indirizzo;/*** @var string** @ORM\Column(name="indirizzo_pec", type="string", length=255, nullable=true)*/private $indirizzoPec;/*** @var string** @ORM\Column(name="codice_destinatario_fattura_elettronica", type="string", length=255, nullable=true)*/private $codiceDestinatarioFatturaElettronica;/*** @var string** @ORM\Column(name="citta", type="text", nullable=true)*/private $citta;/*** @var string** @ORM\Column(name="cap", type="text", nullable=true)*/private $cap;/*** @var string** @ORM\Column(name="provincia", type="text", nullable=true)*/private $provincia;/*** @var string** @ORM\Column(name="nazione", type="text", nullable=true)*/private $nazione;/*** @var string** @ORM\Column(name="twofactor_shared_secret", type="text", nullable=true)*/private $twofactorSharedSecret;/*** @var string** @ORM\Column(name="telefono", type="text", nullable=true)*/private $telefono;/*** @var string** @ORM\Column(name="fax", type="text", nullable=true)*/private $fax;/*** @var bool** @ORM\Column(name="agente", type="boolean", nullable=true)*/private $agente;/*** @var bool** @ORM\Column(name="nascondi_voce_menu_agente_commerciale", type="boolean", nullable=true)*/private $nascondiVoceMenuAgenteCommerciale;/*** @var bool** @ORM\Column(name="mostra_listino_sconto", type="boolean", nullable=true)*/private $mostraListinoSconto;/*** @var bool** @ORM\Column(name="nascondi_voce_menu_profilo", type="boolean", nullable=true)*/private $nascondiVoceMenuProfilo;/*** @var bool** @ORM\Column(name="commerciale", type="boolean", nullable=true)*/private $commerciale;/*** @var bool** @ORM\Column(name="utente_comune", type="boolean", nullable=true)*/private $utenteComune;/*** @var bool** @ORM\Column(name="privato", type="boolean", nullable=true)*/private $privato;/*** @var bool** @ORM\Column(name="enabled", type="boolean", nullable=true)*/private $enabled;/*** @var string** @ORM\Column(name="codice_assoggettamento_fiscale", type="text", nullable=true, options={"default" : "B"})*/private $codiceAssoggettamentoFiscale;/*** @var string** @ORM\Column(name="social_id", type="string", length=255, nullable=true)*/private $socialId;/*** @var string** @ORM\Column(name="valore_aliquota_iva", type="decimal", precision=10, scale=2, nullable=true)*/private $valoreAliquotaIva;/*** @var string** @ORM\Column(name="codice_aliquota_iva", type="string", length=255, nullable=true)*/private $codiceAliquotaIva;/*** @var string** @ORM\Column(name="importo_imponibile_minimo_ordine", type="decimal", precision=10, scale=2, nullable=true)*/private $importoImponibileMinimoOrdine;/*** @var string** @ORM\Column(name="social_name", type="string", length=255, nullable=true)*/private $socialName;/*** @var \DateTime** @ORM\Column(name="last_login", type="datetime", nullable=true)*/private $lastLogin;/*** @ORM\ManyToOne(targetEntity="App\Entity\FiltroVisualizzazioneArticoliClienti")* @ORM\JoinColumn(name="filtro_visualizzazione_articoli_clienti_id", referencedColumnName="id", onDelete="SET NULL", nullable=true)*/private $filtroVisualizzazioneArticoliClienti;public static function CreaListaColonne($padre = ""){return array('id' => Colonna::CreaColonna('id', 'int', 'Id', $padre, '', '', '', false, null ),'ragioneSociale' => Colonna::CreaColonna('ragioneSociale', 'string', 'Ragione sociale', $padre, '', '', '', false, null ),'nome' => Colonna::CreaColonna('nome', 'string', 'Nome', $padre, '', '', '', false, null ),'indirizzoPec' => Colonna::CreaColonna('indirizzoPec', 'string', 'Indirizzo Pec', $padre, '', '', '', false, null ),'codiceDestinatarioFatturaElettronica' => Colonna::CreaColonna('codiceDestinatarioFatturaElettronica', 'string', 'Codice destinatario fattura elettronica', $padre, '', '', '', false, null ),'cognome' => Colonna::CreaColonna('cognome', 'string', 'Cognome', $padre, '', '', '', false, null ),'codiceCliente' => Colonna::CreaColonna('codiceCliente', 'string', 'Codice cliente', $padre, '', '', '', false, null ),'codiceListinoVendita' => Colonna::CreaColonna('codiceListinoVendita', 'string', 'Codice listino vendita', $padre, '', '', '', false, null ),'partitaIva' => Colonna::CreaColonna('partitaIva', 'string', 'Partita iva', $padre, '', '', '', false, null ),'codiceFiscale' => Colonna::CreaColonna('codiceFiscale', 'string', 'Codice fiscale', $padre, '', '', '', false, null ),'indirizzo' => Colonna::CreaColonna('indirizzo', 'string', 'Indirizzo', $padre, '', '', '', false, null ),'citta' => Colonna::CreaColonna('citta', 'string', 'Città ', $padre, '', '', '', false, null ),'cap' => Colonna::CreaColonna('cap', 'string', 'Cap', $padre, '', '', '', false, null ),'provincia' => Colonna::CreaColonna('provincia', 'string', 'Provincia', $padre, '', '', '', false, null ),'nazione' => Colonna::CreaColonna('nazione', 'string', 'Nazione', $padre, '', '', '', false, null ),'telefono' => Colonna::CreaColonna('telefono', 'string', 'Telefono', $padre, '', '', '', false, null ),'fax' => Colonna::CreaColonna('fax', 'string', 'Fax', $padre, '', '', '', false, null ),'agente' => Colonna::CreaColonna('agente', 'bool', 'Agente', $padre, '', '', '', false, null ),'commerciale' => Colonna::CreaColonna('commerciale', 'bool', 'Commerciale', $padre, '', '', '', false, null ),'utenteComune' => Colonna::CreaColonna('utenteComune', 'bool', 'Utente comune', $padre, '', '', '', false, null ),'privato' => Colonna::CreaColonna('privato', 'bool', 'Privato', $padre, '', '', '', false, null ),'codiceAssoggettamentoFiscale' => Colonna::CreaColonna('codiceAssoggettamentoFiscale', 'string', 'Codice assoggettamento fiscale', $padre, '', '', '', false, null ),'codiceAliquotaIva' => Colonna::CreaColonna('codiceAliquotaIVa', 'string', 'Codice aliquota iva', $padre, '', '', '', false, null ),'importoImponibileMinimoOrdine' => Colonna::CreaColonna('importoImponibileMinimoOrdine', 'decimal', 'Importo imponibile minimo ordine', $padre, '', '', '', false, null ),'socialId' => Colonna::CreaColonna('socialId', 'string', 'Social id', $padre, '', '', '', false, null ),'socialName' => Colonna::CreaColonna('socialName', 'string', 'Social name', $padre, '', '', '', false, null ),);}public function getUsername(): ?string{return $this->username;}public function setUsername(string $username): static{$this->username = $username;return $this;}public function hasRole(string $role): bool{return in_array($role, $this->roles);}public function getPassword(): ?string{return $this->password;}public function setPassword(string $password): static{$this->password = $password;return $this;}/*** @see UserInterface*/public function getSalt(){// not needed when using the "bcrypt" algorithm in security.yaml}/*** @see UserInterface*/public function eraseCredentials(){// If you store any temporary, sensitive data on the user, clear it here// $this->plainPassword = null;}public function getEmail(): ?string{return $this->email;}public function setEmail(?string $email): static{$this->email = $email;return $this;}public function getId(): ?int{return $this->id;}public function getRagioneSociale(): ?string{return $this->ragioneSociale;}public function setRagioneSociale(?string $ragioneSociale): static{$this->ragioneSociale = $ragioneSociale;return $this;}public function getNome(): ?string{return $this->nome;}public function setNome(?string $nome): static{$this->nome = $nome;return $this;}public function getAltriDati(): ?string{return $this->altriDati;}public function setAltriDati(?string $altriDati): static{$this->altriDati = $altriDati;return $this;}public function getCognome(): ?string{return $this->cognome;}public function setCognome(?string $cognome): static{$this->cognome = $cognome;return $this;}public function getCodiceCliente(): ?string{return $this->codiceCliente;}public function setCodiceCliente(?string $codiceCliente): static{$this->codiceCliente = $codiceCliente;return $this;}public function getCodiceListinoVendita(): ?string{return $this->codiceListinoVendita;}public function setCodiceListinoVendita(?string $codiceListinoVendita): static{$this->codiceListinoVendita = $codiceListinoVendita;return $this;}public function getPartitaIva(): ?string{return $this->partitaIva;}public function setPartitaIva(?string $partitaIva): static{$this->partitaIva = $partitaIva;return $this;}public function getCodiceFiscale(): ?string{return $this->codiceFiscale;}public function setCodiceFiscale(?string $codiceFiscale): static{$this->codiceFiscale = $codiceFiscale;return $this;}public function getIndirizzo(): ?string{return $this->indirizzo;}public function setIndirizzo(?string $indirizzo): static{$this->indirizzo = $indirizzo;return $this;}public function getIndirizzoPec(): ?string{return $this->indirizzoPec;}public function setIndirizzoPec(?string $indirizzoPec): static{$this->indirizzoPec = $indirizzoPec;return $this;}public function getCodiceDestinatarioFatturaElettronica(): ?string{return $this->codiceDestinatarioFatturaElettronica;}public function setCodiceDestinatarioFatturaElettronica(?string $codiceDestinatarioFatturaElettronica): static{$this->codiceDestinatarioFatturaElettronica = $codiceDestinatarioFatturaElettronica;return $this;}public function getCitta(): ?string{return $this->citta;}public function setCitta(?string $citta): static{$this->citta = $citta;return $this;}public function getCap(): ?string{return $this->cap;}public function setCap(?string $cap): static{$this->cap = $cap;return $this;}public function getProvincia(): ?string{return $this->provincia;}public function setProvincia(?string $provincia): static{$this->provincia = $provincia;return $this;}public function getNazione(): ?string{return $this->nazione;}public function setNazione(?string $nazione): static{$this->nazione = $nazione;return $this;}public function getTwofactorSharedSecret(): ?string{return $this->twofactorSharedSecret;}public function setTwofactorSharedSecret(?string $twofactorSharedSecret): static{$this->twofactorSharedSecret = $twofactorSharedSecret;return $this;}public function getTelefono(): ?string{return $this->telefono;}public function setTelefono(?string $telefono): static{$this->telefono = $telefono;return $this;}public function getFax(): ?string{return $this->fax;}public function setFax(?string $fax): static{$this->fax = $fax;return $this;}public function getAgente(): ?bool{return $this->agente;}public function setAgente(?bool $agente): static{$this->agente = $agente;return $this;}public function getCommerciale(): ?bool{return $this->commerciale;}public function setCommerciale(?bool $commerciale): static{$this->commerciale = $commerciale;return $this;}public function getUtenteComune(): ?bool{return $this->utenteComune;}public function setUtenteComune(?bool $utenteComune): static{$this->utenteComune = $utenteComune;return $this;}public function getPrivato(): ?bool{return $this->privato;}public function setPrivato(?bool $privato): static{$this->privato = $privato;return $this;}public function getCodiceAssoggettamentoFiscale(): ?string{return $this->codiceAssoggettamentoFiscale;}public function setCodiceAssoggettamentoFiscale(?string $codiceAssoggettamentoFiscale): static{$this->codiceAssoggettamentoFiscale = $codiceAssoggettamentoFiscale;return $this;}public function getSocialId(): ?string{return $this->socialId;}public function setSocialId(?string $socialId): static{$this->socialId = $socialId;return $this;}public function getValoreAliquotaIva(): ?string{return $this->valoreAliquotaIva;}public function setValoreAliquotaIva(?string $valoreAliquotaIva): static{$this->valoreAliquotaIva = $valoreAliquotaIva;return $this;}public function getCodiceAliquotaIva(): ?string{return $this->codiceAliquotaIva;}public function setCodiceAliquotaIva(?string $codiceAliquotaIva): static{$this->codiceAliquotaIva = $codiceAliquotaIva;return $this;}public function getSocialName(): ?string{return $this->socialName;}public function setSocialName(?string $socialName): static{$this->socialName = $socialName;return $this;}public function getFiltroVisualizzazioneArticoliClienti(): ?FiltroVisualizzazioneArticoliClienti{return $this->filtroVisualizzazioneArticoliClienti;}public function setFiltroVisualizzazioneArticoliClienti(?FiltroVisualizzazioneArticoliClienti $filtroVisualizzazioneArticoliClienti): static{$this->filtroVisualizzazioneArticoliClienti = $filtroVisualizzazioneArticoliClienti;return $this;}public function getEnabled(): ?bool{return $this->enabled;}public function setEnabled(?bool $enabled): static{$this->enabled = $enabled;return $this;}public function getLastLogin(): ?\DateTimeInterface{return $this->lastLogin;}public function setLastLogin(?\DateTimeInterface $lastLogin): static{$this->lastLogin = $lastLogin;return $this;}public function getNascondiVoceMenuAgenteCommerciale(): ?bool{return $this->nascondiVoceMenuAgenteCommerciale;}public function setNascondiVoceMenuAgenteCommerciale(?bool $nascondiVoceMenuAgenteCommerciale): static{$this->nascondiVoceMenuAgenteCommerciale = $nascondiVoceMenuAgenteCommerciale;return $this;}public function getNascondiVoceMenuProfilo(): ?bool{return $this->nascondiVoceMenuProfilo;}public function setNascondiVoceMenuProfilo(?bool $nascondiVoceMenuProfilo): static{$this->nascondiVoceMenuProfilo = $nascondiVoceMenuProfilo;return $this;}public function getTokenResetPassword(): ?string{return $this->tokenResetPassword;}public function setTokenResetPassword(?string $tokenResetPassword): static{$this->tokenResetPassword = $tokenResetPassword;return $this;}public function getDataRichiestaResetPassword(): ?\DateTimeInterface{return $this->dataRichiestaResetPassword;}public function setDataRichiestaResetPassword(?\DateTimeInterface $dataRichiestaResetPassword): static{$this->dataRichiestaResetPassword = $dataRichiestaResetPassword;return $this;}public function getCodiceFornitore(): ?string{return $this->codiceFornitore;}public function setCodiceFornitore(?string $codiceFornitore): static{$this->codiceFornitore = $codiceFornitore;return $this;}public function getIdentificativoUtente(): ?string{return $this->identificativoUtente;}public function setIdentificativoUtente(?string $identificativoUtente): static{$this->identificativoUtente = $identificativoUtente;return $this;}public function getUserIdentifier(): string{return $this->username;}public function getRoles(): array{return $this->roles;}public function setRoles(array $roles): static{$this->roles = $roles;return $this;}public function isAgente(): ?bool{return $this->agente;}public function isNascondiVoceMenuAgenteCommerciale(): ?bool{return $this->nascondiVoceMenuAgenteCommerciale;}public function isNascondiVoceMenuProfilo(): ?bool{return $this->nascondiVoceMenuProfilo;}public function isCommerciale(): ?bool{return $this->commerciale;}public function isUtenteComune(): ?bool{return $this->utenteComune;}public function isPrivato(): ?bool{return $this->privato;}public function isEnabled(): ?bool{return $this->enabled;}public function getImportoImponibileMinimoOrdine(): ?string{return $this->importoImponibileMinimoOrdine;}public function setImportoImponibileMinimoOrdine(?string $importoImponibileMinimoOrdine): static{$this->importoImponibileMinimoOrdine = $importoImponibileMinimoOrdine;return $this;}public function isMostraListinoSconto(): ?bool{return $this->mostraListinoSconto;}public function setMostraListinoSconto(?bool $mostraListinoSconto): static{$this->mostraListinoSconto = $mostraListinoSconto;return $this;}}