src/Entity/Painel/Cliente.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Painel;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\Painel\ClienteRepository")
  6.  * @ORM\Table(name="public.cliente")
  7.  */
  8. class Cliente
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer", name="id_cliente")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $dbname;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $nome;
  24.     /**
  25.      * @ORM\Column(type="boolean")
  26.      */
  27.     private $ativo;
  28.     /**
  29.      * @ORM\Column(type="integer")
  30.      */
  31.     private $id_tipo;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Painel\Tipo", fetch="EAGER")
  34.      * @ORM\JoinColumn(name="id_tipo", referencedColumnName="id_tipo")
  35.      */
  36.     private $tipo;
  37.     /**
  38.      * @ORM\Column(type="json", name="config")
  39.      */
  40.     private $config;
  41.     /**
  42.      * @ORM\Column(type="string", name="host")
  43.      */
  44.     private $host;
  45.     /**
  46.      * @ORM\Column(type="string", name="logo")
  47.      */
  48.     private $logo;
  49.     /**
  50.      * @ORM\Column(type="boolean", name="termo_aceite", nullable=FALSE)
  51.      */
  52.     private $termo_aceite;
  53.     public function getId(): ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getDbname(): ?string
  58.     {
  59.         return $this->dbname;
  60.     }
  61.     public function setDbname(string $dbname): self
  62.     {
  63.         $this->dbname $dbname;
  64.         return $this;
  65.     }
  66.     public function getNome(): ?string
  67.     {
  68.         return $this->nome;
  69.     }
  70.     public function setNome(string $nome): self
  71.     {
  72.         $this->nome $nome;
  73.         return $this;
  74.     }
  75.     public function getAtivo(): ?bool
  76.     {
  77.         return $this->ativo;
  78.     }
  79.     public function setAtivo(bool $ativo): self
  80.     {
  81.         $this->ativo $ativo;
  82.         return $this;
  83.     }
  84.     /**
  85.      * Get the value of id_tipo.
  86.      */
  87.     public function getIdTipo()
  88.     {
  89.         return $this->id_tipo;
  90.     }
  91.     /**
  92.      * Set the value of id_tipo.
  93.      *
  94.      * @param mixed $id_tipo
  95.      */
  96.     public function setIdTipo($id_tipo): self
  97.     {
  98.         $this->id_tipo $id_tipo;
  99.         return $this;
  100.     }
  101.     public function getTipo()
  102.     {
  103.         return $this->tipo;
  104.     }
  105.     /**
  106.      * Set the value of config.
  107.      *
  108.      * @param mixed $config
  109.      */
  110.     public function setConfig($config): self
  111.     {
  112.         $this->config $config;
  113.         return $this;
  114.     }
  115.     public function getConfig()
  116.     {
  117.         return $this->config;
  118.     }
  119.     public function setHost(string $host)
  120.     {
  121.         $this->host $host;
  122.         return $this;
  123.     }
  124.     public function getHost()
  125.     {
  126.         return $this->host;
  127.     }
  128.     public function getLogo(): ?string
  129.     {
  130.         return $this->logo;
  131.     }
  132.     
  133.     public function setLogo(?string $logo): self
  134.     {
  135.         $this->logo $logo;
  136.     
  137.         return $this;
  138.     }
  139.     public function getTermoAceite(): bool
  140.     {
  141.         return $this->termo_aceite;
  142.     }
  143.     
  144.     public function setTermoAceite(bool $termo_aceite): self
  145.     {
  146.         $this->termo_aceite $termo_aceite;
  147.     
  148.         return $this;
  149.     }
  150. }