src/Entity/Lingue.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Lingue
  7.  *
  8.  * @ORM\Table(name="lingue")
  9.  * @ORM\Entity(repositoryClass="App\Repository\LingueRepository")
  10.  */
  11. class Lingue
  12. {
  13.     /**
  14.      * @var string
  15.      * @ORM\Id
  16.      * @ORM\Column(name="locale", type="string", length=20, unique=true)
  17.      */
  18.     private $locale;
  19.     /**
  20.      * @var string
  21.      *
  22.      * @ORM\Column(name="nome", type="string", length=255, nullable=true)
  23.      */
  24.     private $nome;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="icona", type="string", length=255, nullable=true)
  29.      */
  30.     private $icona;
  31.     /**
  32.      * @var bool
  33.      *
  34.      * @ORM\Column(name="attivo", type="boolean")
  35.      */
  36.     private $attivo;
  37.     /**
  38.      * @var \DateTime
  39.      *
  40.      * @ORM\Column(name="data_creazione", type="datetime")
  41.      */
  42.     private $dataCreazione;
  43.     /**
  44.      * @var \DateTime
  45.      *
  46.      * @ORM\Column(name="data_modifica", type="datetime")
  47.      */
  48.     private $dataModifica;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity="User")
  51.      * @ORM\JoinColumn(name="utente_modifica_id", referencedColumnName="id", onDelete="SET NULL")
  52.      */
  53.     private $utenteModifica;
  54.     /**
  55.      * Set locale
  56.      *
  57.      * @param string $locale
  58.      *
  59.      * @return Lingue
  60.      */
  61.     public function setLocale($locale)
  62.     {
  63.         $this->locale $locale;
  64.     
  65.         return $this;
  66.     }
  67.     public function getLocale(): ?string
  68.     {
  69.         return $this->locale;
  70.     }
  71.     public function setNome(?string $nome): static
  72.     {
  73.         $this->nome $nome;
  74.         return $this;
  75.     }
  76.     public function getNome(): ?string
  77.     {
  78.         return $this->nome;
  79.     }
  80.     public function setIcona(?string $icona): static
  81.     {
  82.         $this->icona $icona;
  83.         return $this;
  84.     }
  85.     public function getIcona(): ?string
  86.     {
  87.         return $this->icona;
  88.     }
  89.     public function setAttivo(bool $attivo): static
  90.     {
  91.         $this->attivo $attivo;
  92.         return $this;
  93.     }
  94.     public function getAttivo(): ?bool
  95.     {
  96.         return $this->attivo;
  97.     }
  98.     public function setDataCreazione(\DateTimeInterface $dataCreazione): static
  99.     {
  100.         $this->dataCreazione $dataCreazione;
  101.         return $this;
  102.     }
  103.     public function getDataCreazione(): ?\DateTimeInterface
  104.     {
  105.         return $this->dataCreazione;
  106.     }
  107.     public function setDataModifica(\DateTimeInterface $dataModifica): static
  108.     {
  109.         $this->dataModifica $dataModifica;
  110.         return $this;
  111.     }
  112.     public function getDataModifica(): ?\DateTimeInterface
  113.     {
  114.         return $this->dataModifica;
  115.     }
  116.     public function setUtenteModifica(?User $utenteModifica): static
  117.     {
  118.         $this->utenteModifica $utenteModifica;
  119.         return $this;
  120.     }
  121.     public function getUtenteModifica(): ?User
  122.     {
  123.         return $this->utenteModifica;
  124.     }
  125.     public function isAttivo(): ?bool
  126.     {
  127.         return $this->attivo;
  128.     }
  129. }