src/Entity/User.php line 23

  1. <?php
  2. // src/App/Entity/User.php
  3. namespace App\Entity;
  4. use App\Model\Colonna;
  5. use App\Model\Entita\RigaCarrello;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping\AttributeOverride;
  8. use Doctrine\ORM\Mapping\AttributeOverrides;
  9. use Doctrine\ORM\Mapping\PostLoad;
  10. use Doctrine\ORM\Mapping\PostPersist;
  11. use Doctrine\ORM\Mapping\PrePersist;
  12. use Doctrine\ORM\Mapping\PreUpdate;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
  15. use Symfony\Component\Security\Core\User\UserInterface;
  16. /**
  17.  * @ORM\Entity
  18.  * @ORM\Table(name="fos_user")
  19.  */
  20. class User implements UserInterfacePasswordAuthenticatedUserInterface
  21. {
  22.     /**
  23.      * @ORM\Id
  24.      * @ORM\Column(type="integer", name="id")
  25.      * @ORM\GeneratedValue(strategy="AUTO")
  26.      */
  27.     protected $id;
  28.     /**
  29.      * @ORM\Column(type="json")
  30.      */
  31.     private $roles = [];
  32.     /**
  33.      * @ORM\Column(type="string", length=180, unique=true)
  34.      */
  35.     private $username;
  36.     /**
  37.      * @ORM\Column(type="text", nullable=true)
  38.      */
  39.     private $tokenResetPassword;
  40.     /**
  41.      * @var \DateTime
  42.      *
  43.      * @ORM\Column(name="data_richiesta_reset_password", type="datetime", nullable=true)
  44.      */
  45.     private $dataRichiestaResetPassword;
  46.     /**
  47.      * @ORM\Column(type="string", length=180, unique=false, nullable=true)
  48.      */
  49.     private $email;
  50.     /**
  51.      * @var string The hashed password
  52.      * @ORM\Column(type="string")
  53.      */
  54.     private $password;
  55.     /**
  56.      * @var string
  57.      *
  58.      * @ORM\Column(name="ragione_sociale", type="string", length=255, nullable=true)
  59.      */
  60.     private $ragioneSociale;
  61.     /**
  62.      * @var string
  63.      *
  64.      * @ORM\Column(name="nome", type="string", length=255, nullable=true)
  65.      */
  66.     private $nome;
  67.     /**
  68.      * @var string
  69.      *
  70.      * @ORM\Column(name="identificativo_utente", type="string", length=255, nullable=true)
  71.      */
  72.     private $identificativoUtente;
  73.     /**
  74.      * @var string
  75.      *
  76.      * @ORM\Column(name="altri_dati", type="text", nullable=true)
  77.      */
  78.     private $altriDati;
  79.     /**
  80.      * @var string
  81.      *
  82.      * @ORM\Column(name="cognome", type="string", length=255, nullable=true)
  83.      */
  84.     private $cognome;
  85.     /**
  86.      * @var string
  87.      *
  88.      * @ORM\Column(name="codice_cliente", type="text", nullable=true)
  89.      */
  90.     private $codiceCliente;
  91.     /**
  92.      * @var string
  93.      *
  94.      * @ORM\Column(name="codice_fornitore", type="string", length=255, nullable=true)
  95.      */
  96.     private $codiceFornitore;
  97.     /**
  98.      * @var string
  99.      *
  100.      * @ORM\Column(name="codice_listino_vendita", type="text", nullable=true)
  101.      */
  102.     private $codiceListinoVendita;
  103.     /**
  104.      * @var string
  105.      *
  106.      * @ORM\Column(name="partita_iva", type="string", length=255, nullable=true)
  107.      */
  108.     private $partitaIva;
  109.     /**
  110.      * @var string
  111.      *
  112.      * @ORM\Column(name="codice_fiscale", type="string", length=255, nullable=true)
  113.      */
  114.     private $codiceFiscale;
  115.     /**
  116.      * @var string
  117.      *
  118.      * @ORM\Column(name="indirizzo", type="string", length=255, nullable=true)
  119.      */
  120.     private $indirizzo;
  121.     /**
  122.      * @var string
  123.      *
  124.      * @ORM\Column(name="indirizzo_pec", type="string", length=255, nullable=true)
  125.      */
  126.     private $indirizzoPec;
  127.     /**
  128.      * @var string
  129.      *
  130.      * @ORM\Column(name="codice_destinatario_fattura_elettronica", type="string", length=255, nullable=true)
  131.      */
  132.     private $codiceDestinatarioFatturaElettronica;
  133.     /**
  134.      * @var string
  135.      *
  136.      * @ORM\Column(name="citta", type="text", nullable=true)
  137.      */
  138.     private $citta;
  139.     /**
  140.      * @var string
  141.      *
  142.      * @ORM\Column(name="cap", type="text", nullable=true)
  143.      */
  144.     private $cap;
  145.     /**
  146.      * @var string
  147.      *
  148.      * @ORM\Column(name="provincia", type="text", nullable=true)
  149.      */
  150.     private $provincia;
  151.     /**
  152.      * @var string
  153.      *
  154.      * @ORM\Column(name="nazione", type="text", nullable=true)
  155.      */
  156.     private $nazione;
  157.     /**
  158.      * @var string
  159.      *
  160.      * @ORM\Column(name="twofactor_shared_secret", type="text", nullable=true)
  161.      */
  162.     private $twofactorSharedSecret;
  163.     /**
  164.      * @var string
  165.      *
  166.      * @ORM\Column(name="telefono", type="text", nullable=true)
  167.      */
  168.     private $telefono;
  169.     /**
  170.      * @var string
  171.      *
  172.      * @ORM\Column(name="fax", type="text", nullable=true)
  173.      */
  174.     private $fax;
  175.     /**
  176.      * @var bool
  177.      *
  178.      * @ORM\Column(name="agente", type="boolean", nullable=true)
  179.      */
  180.     private $agente;
  181.     /**
  182.      * @var bool
  183.      *
  184.      * @ORM\Column(name="nascondi_voce_menu_agente_commerciale", type="boolean", nullable=true)
  185.      */
  186.     private $nascondiVoceMenuAgenteCommerciale;
  187.     /**
  188.      * @var bool
  189.      *
  190.      * @ORM\Column(name="mostra_listino_sconto", type="boolean", nullable=true)
  191.      */
  192.     private $mostraListinoSconto;
  193.     /**
  194.      * @var bool
  195.      *
  196.      * @ORM\Column(name="nascondi_voce_menu_profilo", type="boolean", nullable=true)
  197.      */
  198.     private $nascondiVoceMenuProfilo;
  199.     /**
  200.      * @var bool
  201.      *
  202.      * @ORM\Column(name="commerciale", type="boolean", nullable=true)
  203.      */
  204.     private $commerciale;
  205.     /**
  206.      * @var bool
  207.      *
  208.      * @ORM\Column(name="utente_comune", type="boolean", nullable=true)
  209.      */
  210.     private $utenteComune;
  211.     /**
  212.      * @var bool
  213.      *
  214.      * @ORM\Column(name="privato", type="boolean", nullable=true)
  215.      */
  216.     private $privato;
  217.     /**
  218.      * @var bool
  219.      *
  220.      * @ORM\Column(name="enabled", type="boolean", nullable=true)
  221.      */
  222.     private $enabled;
  223.     /**
  224.      * @var string
  225.      *
  226.      * @ORM\Column(name="codice_assoggettamento_fiscale", type="text", nullable=true, options={"default" : "B"})
  227.      */
  228.     private $codiceAssoggettamentoFiscale;
  229.     /**
  230.      * @var string
  231.      *
  232.      * @ORM\Column(name="social_id", type="string", length=255, nullable=true)
  233.      */
  234.     private $socialId;
  235.     /**
  236.      * @var string
  237.      *
  238.      * @ORM\Column(name="valore_aliquota_iva", type="decimal", precision=10, scale=2, nullable=true)
  239.      */
  240.     private $valoreAliquotaIva;
  241.     /**
  242.      * @var string
  243.      *
  244.      * @ORM\Column(name="codice_aliquota_iva", type="string", length=255, nullable=true)
  245.      */
  246.     private $codiceAliquotaIva;
  247.     /**
  248.      * @var string
  249.      *
  250.      * @ORM\Column(name="importo_imponibile_minimo_ordine", type="decimal", precision=10, scale=2, nullable=true)
  251.      */
  252.     private $importoImponibileMinimoOrdine;
  253.     /**
  254.      * @var string
  255.      *
  256.      * @ORM\Column(name="social_name", type="string", length=255, nullable=true)
  257.      */
  258.     private $socialName;
  259.     /**
  260.      * @var \DateTime
  261.      *
  262.      * @ORM\Column(name="last_login", type="datetime", nullable=true)
  263.      */
  264.     private $lastLogin;
  265.     /**
  266.      * @ORM\ManyToOne(targetEntity="App\Entity\FiltroVisualizzazioneArticoliClienti")
  267.      * @ORM\JoinColumn(name="filtro_visualizzazione_articoli_clienti_id", referencedColumnName="id", onDelete="SET NULL", nullable=true)
  268.      */
  269.     private $filtroVisualizzazioneArticoliClienti;
  270.     public static function CreaListaColonne($padre ""){
  271.         return array(
  272.             'id' => Colonna::CreaColonna('id''int''Id'$padre''''''falsenull ),
  273.             'ragioneSociale' => Colonna::CreaColonna('ragioneSociale''string''Ragione sociale'$padre''''''falsenull ),
  274.             'nome' => Colonna::CreaColonna('nome''string''Nome'$padre''''''falsenull ),
  275.             'indirizzoPec' => Colonna::CreaColonna('indirizzoPec''string''Indirizzo Pec'$padre''''''falsenull ),
  276.             'codiceDestinatarioFatturaElettronica' => Colonna::CreaColonna('codiceDestinatarioFatturaElettronica''string''Codice destinatario fattura elettronica'$padre''''''falsenull ),
  277.             'cognome' => Colonna::CreaColonna('cognome''string''Cognome'$padre''''''falsenull ),
  278.             'codiceCliente' => Colonna::CreaColonna('codiceCliente''string''Codice cliente'$padre''''''falsenull ),
  279.             'codiceListinoVendita' => Colonna::CreaColonna('codiceListinoVendita''string''Codice listino vendita'$padre''''''falsenull ),
  280.             'partitaIva' => Colonna::CreaColonna('partitaIva''string''Partita iva'$padre''''''falsenull ),
  281.             'codiceFiscale' => Colonna::CreaColonna('codiceFiscale''string''Codice fiscale'$padre''''''falsenull ),
  282.             'indirizzo' => Colonna::CreaColonna('indirizzo''string''Indirizzo'$padre''''''falsenull ),
  283.             'citta' => Colonna::CreaColonna('citta''string''Città'$padre''''''falsenull ),
  284.             'cap' => Colonna::CreaColonna('cap''string''Cap'$padre''''''falsenull ),
  285.             'provincia' => Colonna::CreaColonna('provincia''string''Provincia'$padre''''''falsenull ),
  286.             'nazione' => Colonna::CreaColonna('nazione''string''Nazione'$padre''''''falsenull ),
  287.             'telefono' => Colonna::CreaColonna('telefono''string''Telefono'$padre''''''falsenull ),
  288.             'fax' => Colonna::CreaColonna('fax''string''Fax'$padre''''''falsenull ),
  289.             'agente' => Colonna::CreaColonna('agente''bool''Agente'$padre''''''falsenull ),
  290.             'commerciale' => Colonna::CreaColonna('commerciale''bool''Commerciale'$padre''''''falsenull ),
  291.             'utenteComune' => Colonna::CreaColonna('utenteComune''bool''Utente comune'$padre''''''falsenull ),
  292.             'privato' => Colonna::CreaColonna('privato''bool''Privato'$padre''''''falsenull ),
  293.             'codiceAssoggettamentoFiscale' => Colonna::CreaColonna('codiceAssoggettamentoFiscale''string''Codice assoggettamento fiscale'$padre''''''falsenull ),
  294.             'codiceAliquotaIva' => Colonna::CreaColonna('codiceAliquotaIVa''string''Codice aliquota iva'$padre''''''falsenull ),
  295.             'importoImponibileMinimoOrdine' => Colonna::CreaColonna('importoImponibileMinimoOrdine''decimal''Importo imponibile minimo ordine'$padre''''''falsenull ),
  296.             'socialId' => Colonna::CreaColonna('socialId''string''Social id'$padre''''''falsenull ),
  297.             'socialName' => Colonna::CreaColonna('socialName''string''Social name'$padre''''''falsenull ),
  298.         );
  299.     }
  300.     public function getUsername(): ?string
  301.     {
  302.         return $this->username;
  303.     }
  304.     public function setUsername(string $username): static
  305.     {
  306.         $this->username $username;
  307.         return $this;
  308.     }
  309.     public function hasRole(string $role): bool
  310.     {
  311.         return in_array($role$this->roles);
  312.     }
  313.     public function getPassword(): ?string
  314.     {
  315.         return $this->password;
  316.     }
  317.     public function setPassword(string $password): static
  318.     {
  319.         $this->password $password;
  320.         return $this;
  321.     }
  322.     /**
  323.      * @see UserInterface
  324.      */
  325.     public function getSalt()
  326.     {
  327.         // not needed when using the "bcrypt" algorithm in security.yaml
  328.     }
  329.     /**
  330.      * @see UserInterface
  331.      */
  332.     public function eraseCredentials()
  333.     {
  334.         // If you store any temporary, sensitive data on the user, clear it here
  335.         // $this->plainPassword = null;
  336.     }
  337.     public function getEmail(): ?string
  338.     {
  339.         return $this->email;
  340.     }
  341.     public function setEmail(?string $email): static
  342.     {
  343.         $this->email $email;
  344.         return $this;
  345.     }
  346.     public function getId(): ?int
  347.     {
  348.         return $this->id;
  349.     }
  350.     public function getRagioneSociale(): ?string
  351.     {
  352.         return $this->ragioneSociale;
  353.     }
  354.     public function setRagioneSociale(?string $ragioneSociale): static
  355.     {
  356.         $this->ragioneSociale $ragioneSociale;
  357.         return $this;
  358.     }
  359.     public function getNome(): ?string
  360.     {
  361.         return $this->nome;
  362.     }
  363.     public function setNome(?string $nome): static
  364.     {
  365.         $this->nome $nome;
  366.         return $this;
  367.     }
  368.     public function getAltriDati(): ?string
  369.     {
  370.         return $this->altriDati;
  371.     }
  372.     public function setAltriDati(?string $altriDati): static
  373.     {
  374.         $this->altriDati $altriDati;
  375.         return $this;
  376.     }
  377.     public function getCognome(): ?string
  378.     {
  379.         return $this->cognome;
  380.     }
  381.     public function setCognome(?string $cognome): static
  382.     {
  383.         $this->cognome $cognome;
  384.         return $this;
  385.     }
  386.     public function getCodiceCliente(): ?string
  387.     {
  388.         return $this->codiceCliente;
  389.     }
  390.     public function setCodiceCliente(?string $codiceCliente): static
  391.     {
  392.         $this->codiceCliente $codiceCliente;
  393.         return $this;
  394.     }
  395.     public function getCodiceListinoVendita(): ?string
  396.     {
  397.         return $this->codiceListinoVendita;
  398.     }
  399.     public function setCodiceListinoVendita(?string $codiceListinoVendita): static
  400.     {
  401.         $this->codiceListinoVendita $codiceListinoVendita;
  402.         return $this;
  403.     }
  404.     public function getPartitaIva(): ?string
  405.     {
  406.         return $this->partitaIva;
  407.     }
  408.     public function setPartitaIva(?string $partitaIva): static
  409.     {
  410.         $this->partitaIva $partitaIva;
  411.         return $this;
  412.     }
  413.     public function getCodiceFiscale(): ?string
  414.     {
  415.         return $this->codiceFiscale;
  416.     }
  417.     public function setCodiceFiscale(?string $codiceFiscale): static
  418.     {
  419.         $this->codiceFiscale $codiceFiscale;
  420.         return $this;
  421.     }
  422.     public function getIndirizzo(): ?string
  423.     {
  424.         return $this->indirizzo;
  425.     }
  426.     public function setIndirizzo(?string $indirizzo): static
  427.     {
  428.         $this->indirizzo $indirizzo;
  429.         return $this;
  430.     }
  431.     public function getIndirizzoPec(): ?string
  432.     {
  433.         return $this->indirizzoPec;
  434.     }
  435.     public function setIndirizzoPec(?string $indirizzoPec): static
  436.     {
  437.         $this->indirizzoPec $indirizzoPec;
  438.         return $this;
  439.     }
  440.     public function getCodiceDestinatarioFatturaElettronica(): ?string
  441.     {
  442.         return $this->codiceDestinatarioFatturaElettronica;
  443.     }
  444.     public function setCodiceDestinatarioFatturaElettronica(?string $codiceDestinatarioFatturaElettronica): static
  445.     {
  446.         $this->codiceDestinatarioFatturaElettronica $codiceDestinatarioFatturaElettronica;
  447.         return $this;
  448.     }
  449.     public function getCitta(): ?string
  450.     {
  451.         return $this->citta;
  452.     }
  453.     public function setCitta(?string $citta): static
  454.     {
  455.         $this->citta $citta;
  456.         return $this;
  457.     }
  458.     public function getCap(): ?string
  459.     {
  460.         return $this->cap;
  461.     }
  462.     public function setCap(?string $cap): static
  463.     {
  464.         $this->cap $cap;
  465.         return $this;
  466.     }
  467.     public function getProvincia(): ?string
  468.     {
  469.         return $this->provincia;
  470.     }
  471.     public function setProvincia(?string $provincia): static
  472.     {
  473.         $this->provincia $provincia;
  474.         return $this;
  475.     }
  476.     public function getNazione(): ?string
  477.     {
  478.         return $this->nazione;
  479.     }
  480.     public function setNazione(?string $nazione): static
  481.     {
  482.         $this->nazione $nazione;
  483.         return $this;
  484.     }
  485.     public function getTwofactorSharedSecret(): ?string
  486.     {
  487.         return $this->twofactorSharedSecret;
  488.     }
  489.     public function setTwofactorSharedSecret(?string $twofactorSharedSecret): static
  490.     {
  491.         $this->twofactorSharedSecret $twofactorSharedSecret;
  492.         return $this;
  493.     }
  494.     public function getTelefono(): ?string
  495.     {
  496.         return $this->telefono;
  497.     }
  498.     public function setTelefono(?string $telefono): static
  499.     {
  500.         $this->telefono $telefono;
  501.         return $this;
  502.     }
  503.     public function getFax(): ?string
  504.     {
  505.         return $this->fax;
  506.     }
  507.     public function setFax(?string $fax): static
  508.     {
  509.         $this->fax $fax;
  510.         return $this;
  511.     }
  512.     public function getAgente(): ?bool
  513.     {
  514.         return $this->agente;
  515.     }
  516.     public function setAgente(?bool $agente): static
  517.     {
  518.         $this->agente $agente;
  519.         return $this;
  520.     }
  521.     public function getCommerciale(): ?bool
  522.     {
  523.         return $this->commerciale;
  524.     }
  525.     public function setCommerciale(?bool $commerciale): static
  526.     {
  527.         $this->commerciale $commerciale;
  528.         return $this;
  529.     }
  530.     public function getUtenteComune(): ?bool
  531.     {
  532.         return $this->utenteComune;
  533.     }
  534.     public function setUtenteComune(?bool $utenteComune): static
  535.     {
  536.         $this->utenteComune $utenteComune;
  537.         return $this;
  538.     }
  539.     public function getPrivato(): ?bool
  540.     {
  541.         return $this->privato;
  542.     }
  543.     public function setPrivato(?bool $privato): static
  544.     {
  545.         $this->privato $privato;
  546.         return $this;
  547.     }
  548.     public function getCodiceAssoggettamentoFiscale(): ?string
  549.     {
  550.         return $this->codiceAssoggettamentoFiscale;
  551.     }
  552.     public function setCodiceAssoggettamentoFiscale(?string $codiceAssoggettamentoFiscale): static
  553.     {
  554.         $this->codiceAssoggettamentoFiscale $codiceAssoggettamentoFiscale;
  555.         return $this;
  556.     }
  557.     public function getSocialId(): ?string
  558.     {
  559.         return $this->socialId;
  560.     }
  561.     public function setSocialId(?string $socialId): static
  562.     {
  563.         $this->socialId $socialId;
  564.         return $this;
  565.     }
  566.     public function getValoreAliquotaIva(): ?string
  567.     {
  568.         return $this->valoreAliquotaIva;
  569.     }
  570.     public function setValoreAliquotaIva(?string $valoreAliquotaIva): static
  571.     {
  572.         $this->valoreAliquotaIva $valoreAliquotaIva;
  573.         return $this;
  574.     }
  575.     public function getCodiceAliquotaIva(): ?string
  576.     {
  577.         return $this->codiceAliquotaIva;
  578.     }
  579.     public function setCodiceAliquotaIva(?string $codiceAliquotaIva): static
  580.     {
  581.         $this->codiceAliquotaIva $codiceAliquotaIva;
  582.         return $this;
  583.     }
  584.     public function getSocialName(): ?string
  585.     {
  586.         return $this->socialName;
  587.     }
  588.     public function setSocialName(?string $socialName): static
  589.     {
  590.         $this->socialName $socialName;
  591.         return $this;
  592.     }
  593.     public function getFiltroVisualizzazioneArticoliClienti(): ?FiltroVisualizzazioneArticoliClienti
  594.     {
  595.         return $this->filtroVisualizzazioneArticoliClienti;
  596.     }
  597.     public function setFiltroVisualizzazioneArticoliClienti(?FiltroVisualizzazioneArticoliClienti $filtroVisualizzazioneArticoliClienti): static
  598.     {
  599.         $this->filtroVisualizzazioneArticoliClienti $filtroVisualizzazioneArticoliClienti;
  600.         return $this;
  601.     }
  602.     public function getEnabled(): ?bool
  603.     {
  604.         return $this->enabled;
  605.     }
  606.     public function setEnabled(?bool $enabled): static
  607.     {
  608.         $this->enabled $enabled;
  609.         return $this;
  610.     }
  611.     public function getLastLogin(): ?\DateTimeInterface
  612.     {
  613.         return $this->lastLogin;
  614.     }
  615.     public function setLastLogin(?\DateTimeInterface $lastLogin): static
  616.     {
  617.         $this->lastLogin $lastLogin;
  618.         return $this;
  619.     }
  620.     public function getNascondiVoceMenuAgenteCommerciale(): ?bool
  621.     {
  622.         return $this->nascondiVoceMenuAgenteCommerciale;
  623.     }
  624.     public function setNascondiVoceMenuAgenteCommerciale(?bool $nascondiVoceMenuAgenteCommerciale): static
  625.     {
  626.         $this->nascondiVoceMenuAgenteCommerciale $nascondiVoceMenuAgenteCommerciale;
  627.         return $this;
  628.     }
  629.     public function getNascondiVoceMenuProfilo(): ?bool
  630.     {
  631.         return $this->nascondiVoceMenuProfilo;
  632.     }
  633.     public function setNascondiVoceMenuProfilo(?bool $nascondiVoceMenuProfilo): static
  634.     {
  635.         $this->nascondiVoceMenuProfilo $nascondiVoceMenuProfilo;
  636.         return $this;
  637.     }
  638.     public function getTokenResetPassword(): ?string
  639.     {
  640.         return $this->tokenResetPassword;
  641.     }
  642.     public function setTokenResetPassword(?string $tokenResetPassword): static
  643.     {
  644.         $this->tokenResetPassword $tokenResetPassword;
  645.         return $this;
  646.     }
  647.     public function getDataRichiestaResetPassword(): ?\DateTimeInterface
  648.     {
  649.         return $this->dataRichiestaResetPassword;
  650.     }
  651.     public function setDataRichiestaResetPassword(?\DateTimeInterface $dataRichiestaResetPassword): static
  652.     {
  653.         $this->dataRichiestaResetPassword $dataRichiestaResetPassword;
  654.         return $this;
  655.     }
  656.     public function getCodiceFornitore(): ?string
  657.     {
  658.         return $this->codiceFornitore;
  659.     }
  660.     public function setCodiceFornitore(?string $codiceFornitore): static
  661.     {
  662.         $this->codiceFornitore $codiceFornitore;
  663.         return $this;
  664.     }
  665.     public function getIdentificativoUtente(): ?string
  666.     {
  667.         return $this->identificativoUtente;
  668.     }
  669.     public function setIdentificativoUtente(?string $identificativoUtente): static
  670.     {
  671.         $this->identificativoUtente $identificativoUtente;
  672.         return $this;
  673.     }
  674.     public function getUserIdentifier(): string
  675.     {
  676.         return $this->username;
  677.     }
  678.     public function getRoles(): array
  679.     {
  680.         return $this->roles;
  681.     }
  682.     public function setRoles(array $roles): static
  683.     {
  684.         $this->roles $roles;
  685.         return $this;
  686.     }
  687.     public function isAgente(): ?bool
  688.     {
  689.         return $this->agente;
  690.     }
  691.     public function isNascondiVoceMenuAgenteCommerciale(): ?bool
  692.     {
  693.         return $this->nascondiVoceMenuAgenteCommerciale;
  694.     }
  695.     public function isNascondiVoceMenuProfilo(): ?bool
  696.     {
  697.         return $this->nascondiVoceMenuProfilo;
  698.     }
  699.     public function isCommerciale(): ?bool
  700.     {
  701.         return $this->commerciale;
  702.     }
  703.     public function isUtenteComune(): ?bool
  704.     {
  705.         return $this->utenteComune;
  706.     }
  707.     public function isPrivato(): ?bool
  708.     {
  709.         return $this->privato;
  710.     }
  711.     public function isEnabled(): ?bool
  712.     {
  713.         return $this->enabled;
  714.     }
  715.     public function getImportoImponibileMinimoOrdine(): ?string
  716.     {
  717.         return $this->importoImponibileMinimoOrdine;
  718.     }
  719.     public function setImportoImponibileMinimoOrdine(?string $importoImponibileMinimoOrdine): static
  720.     {
  721.         $this->importoImponibileMinimoOrdine $importoImponibileMinimoOrdine;
  722.         return $this;
  723.     }
  724.     public function isMostraListinoSconto(): ?bool
  725.     {
  726.         return $this->mostraListinoSconto;
  727.     }
  728.     public function setMostraListinoSconto(?bool $mostraListinoSconto): static
  729.     {
  730.         $this->mostraListinoSconto $mostraListinoSconto;
  731.         return $this;
  732.     }
  733. }