<?php
namespace App\Entity\Painel;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\Painel\ClienteRepository")
* @ORM\Table(name="public.cliente")
*/
class Cliente
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer", name="id_cliente")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $dbname;
/**
* @ORM\Column(type="string", length=255)
*/
private $nome;
/**
* @ORM\Column(type="boolean")
*/
private $ativo;
/**
* @ORM\Column(type="integer")
*/
private $id_tipo;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Painel\Tipo", fetch="EAGER")
* @ORM\JoinColumn(name="id_tipo", referencedColumnName="id_tipo")
*/
private $tipo;
/**
* @ORM\Column(type="json", name="config")
*/
private $config;
/**
* @ORM\Column(type="string", name="host")
*/
private $host;
/**
* @ORM\Column(type="string", name="logo")
*/
private $logo;
/**
* @ORM\Column(type="boolean", name="termo_aceite", nullable=FALSE)
*/
private $termo_aceite;
public function getId(): ?int
{
return $this->id;
}
public function getDbname(): ?string
{
return $this->dbname;
}
public function setDbname(string $dbname): self
{
$this->dbname = $dbname;
return $this;
}
public function getNome(): ?string
{
return $this->nome;
}
public function setNome(string $nome): self
{
$this->nome = $nome;
return $this;
}
public function getAtivo(): ?bool
{
return $this->ativo;
}
public function setAtivo(bool $ativo): self
{
$this->ativo = $ativo;
return $this;
}
/**
* Get the value of id_tipo.
*/
public function getIdTipo()
{
return $this->id_tipo;
}
/**
* Set the value of id_tipo.
*
* @param mixed $id_tipo
*/
public function setIdTipo($id_tipo): self
{
$this->id_tipo = $id_tipo;
return $this;
}
public function getTipo()
{
return $this->tipo;
}
/**
* Set the value of config.
*
* @param mixed $config
*/
public function setConfig($config): self
{
$this->config = $config;
return $this;
}
public function getConfig()
{
return $this->config;
}
public function setHost(string $host)
{
$this->host = $host;
return $this;
}
public function getHost()
{
return $this->host;
}
public function getLogo(): ?string
{
return $this->logo;
}
public function setLogo(?string $logo): self
{
$this->logo = $logo;
return $this;
}
public function getTermoAceite(): bool
{
return $this->termo_aceite;
}
public function setTermoAceite(bool $termo_aceite): self
{
$this->termo_aceite = $termo_aceite;
return $this;
}
}