<?php
namespace App\Entity;
use App\Entity\Embeddable\Email;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* Configuracion
*/
#[Gedmo\Loggable]
#[ORM\Table(name: 'configuracion')]
#[ORM\Entity(repositoryClass: 'App\Repository\ConfiguracionRepository')]
class Configuracion
{
/**
* @var int
*/
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
/**
* @var string
*/
#[ORM\Column(name: 'logo', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $logo;
/**
* @var string
*/
#[ORM\Column(name: 'logoblanco', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $logoblanco;
/**
* @var string
*/
#[ORM\Column(name: 'isos', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $isos;
/**
* @var string
*/
#[ORM\Column(name: 'logocuadrado', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $logocuadrado;
#[ORM\Column(name: 'favicon', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $favicon;
/**
* @var string
*/
#[ORM\Column(name: 'firma', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $firma;
#[ORM\Column(name: 'imagen_informativa', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $imagenInformativa;
#[ORM\Column(name: 'color', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private ?string $color;
#[ORM\Column(type: 'string', length: 7)]
#[Gedmo\Versioned]
private string $loginBackgroundColor;
#[ORM\Column(type: 'string', length: 7)]
#[Gedmo\Versioned]
private string $menuColor;
#[ORM\Column(type: 'string', length: 7)]
#[Gedmo\Versioned]
private string $primaryColor;
#[ORM\Column(type: 'string', length: 7)]
#[Gedmo\Versioned]
private string $secondaryColor;
#[ORM\Column(type: 'string', length: 7)]
#[Gedmo\Versioned]
private string $warningColor;
#[ORM\Column(type: 'string', length: 7)]
#[Gedmo\Versioned]
private string $dangerColor;
#[ORM\Column(type: 'string', length: 7)]
#[Gedmo\Versioned]
private string $successColor;
/**
* @var string
*/
#[ORM\Column(name: 'url', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $url;
/**
* @var string
*/
#[ORM\Column(name: 'correo', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $correo;
/**
* @var string
*/
#[ORM\Column(name: 'cif', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $cif;
/**
* @var string
*/
#[ORM\Column(name: 'ccc', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $ccc;
/**
* @var int
*/
#[ORM\Column(name: 'turno', type: 'integer', nullable: true)]
#[Gedmo\Versioned]
private $turno;
/**
* @var int
*/
#[ORM\Column(name: 'marcaje', type: 'integer', nullable: true)]
#[Gedmo\Versioned]
private $marcaje;
/**
* @var int
*/
#[ORM\Column(name: 'festivo', type: 'integer', nullable: true)]
#[Gedmo\Versioned]
private $festivo;
/**
* @var int
*/
#[ORM\Column(name: 'sabado', type: 'integer', nullable: true)]
#[Gedmo\Versioned]
private $sabado;
/**
* @var int
*/
#[ORM\Column(name: 'domingo', type: 'integer', nullable: true)]
#[Gedmo\Versioned]
private $domingo;
/**
* @var string
*/
#[ORM\Column(name: 'fechaLimite', type: 'string', length: 255, nullable: true)]
#[Gedmo\Versioned]
private $fechaLimite;
/**
* @var int
*/
#[ORM\Column(name: 'usuario', type: 'integer')]
#[Gedmo\Versioned]
private $usuario;
#[ORM\Column(type: 'boolean', options: ['default' => false])]
private bool $mostrarLogoUnionEuropea = false;
#[ORM\Embedded(class: Email::class, columnPrefix: 'email_')]
private Email $email;
public function __construct()
{
$this->email = new Email();
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set logo
*
* @param string $logo
*
* @return Configuracion
*/
public function setLogo($logo)
{
$this->logo = $logo;
return $this;
}
/**
* Get logo for documents
*
* @return string
*/
public function getLogo()
{
return $this->logo;
}
/**
* Set logoblanco
*
* @param string $logoblanco
*
* @return Configuracion
*/
public function setLogoblanco($logoblanco)
{
$this->logoblanco = $logoblanco;
return $this;
}
/**
* Get logoblanco for login page
*
* @return string
*/
public function getLogoblanco()
{
return $this->logoblanco;
}
/**
* Set logocuadrado
*
* @param string $logocuadrado
*
* @return Configuracion
*/
public function setLogocuadrado($logocuadrado)
{
$this->logocuadrado = $logocuadrado;
return $this;
}
/**
* Get logocuadrado for sidebar menu
*
* @return string
*/
public function getLogocuadrado()
{
return $this->logocuadrado;
}
public function setFavicon(?string $favicon): self
{
$this->favicon = $favicon;
return $this;
}
public function getFavicon(): ?string
{
return $this->favicon;
}
/**
* Set isos
*
* @param string $isos
*
* @return Configuracion
*/
public function setIsos($isos)
{
$this->isos = $isos;
return $this;
}
/**
* Get isos
*
* @return string
*/
public function getIsos()
{
return $this->isos;
}
public function getImagenInformativa(): ?string
{
return $this->imagenInformativa;
}
public function setImagenInformativa(?string $imagenInformativa): void
{
$this->imagenInformativa = $imagenInformativa;
}
/**
* Set color
*
* @param string $color
*
* @return Configuracion
*/
public function setColor($color)
{
$this->color = $color;
return $this;
}
/**
* Get color
*
* @return string
*/
public function getColor()
{
return $this->color;
}
/**
* Set correo
*
* @param string $correo
*
* @return Configuracion
*/
public function setCorreo($correo)
{
$this->correo = $correo;
return $this;
}
/**
* Get correo
*
* @return string
*/
public function getCorreo()
{
return $this->correo;
}
/**
* Set url
*
* @param string $url
*
* @return Configuracion
*/
public function setUrl($url)
{
$this->url = $url;
return $this;
}
/**
* Get url
*
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Set cif
*
* @param string $cif
*
* @return Configuracion
*/
public function setCif($cif)
{
$this->cif = $cif;
return $this;
}
/**
* Get cif
*
* @return string
*/
public function getCif()
{
return $this->cif;
}
/**
* Set ccc
*
* @param string $ccc
*
* @return Configuracion
*/
public function setCcc($ccc)
{
$this->ccc = $ccc;
return $this;
}
/**
* Get ccc
*
* @return string
*/
public function getCcc()
{
return $this->ccc;
}
/**
* Set usuario
*
* @param integer $usuario
*
* @return Configuracion
*/
public function setUsuario($usuario)
{
$this->usuario = $usuario;
return $this;
}
/**
* Get usuario
* Nº máximo de usuarios que pueden crear en el sistema
*
* @return integer
*/
public function getUsuario()
{
return $this->usuario;
}
/**
* Set firma
*
* @param string $firma
*
* @return Configuracion
*/
public function setFirma($firma)
{
$this->firma = $firma;
return $this;
}
/**
* Get firma
*
* @return string
*/
public function getFirma()
{
return $this->firma;
}
/**
* Set festivo
*
* @param integer $festivo
*
* @return Configuracion
*/
public function setFestivo($festivo)
{
$this->festivo = $festivo;
return $this;
}
/**
* Get festivo
*
* @return integer
*/
public function getFestivo()
{
return $this->festivo;
}
/**
* Set sabado
*
* @param integer $sabado
*
* @return Configuracion
*/
public function setSabado($sabado)
{
$this->sabado = $sabado;
return $this;
}
/**
* Get sabado
*
* @return integer
*/
public function getSabado()
{
return $this->sabado;
}
/**
* Set domingo
*
* @param integer $domingo
*
* @return Configuracion
*/
public function setDomingo($domingo)
{
$this->domingo = $domingo;
return $this;
}
/**
* Get domingo
*
* @return integer
*/
public function getDomingo()
{
return $this->domingo;
}
/**
* Set turno
*
* @param integer $turno
*
* @return Configuracion
*/
public function setTurno($turno)
{
$this->turno = $turno;
return $this;
}
/**
* Get turno
*
* @return integer
*/
public function getTurno()
{
return $this->turno;
}
/**
* Set marcaje
*
* @param integer $marcaje
*
* @return Configuracion
*/
public function setMarcaje($marcaje)
{
$this->marcaje = $marcaje;
return $this;
}
/**
* Get marcaje
*
* @return integer
*/
public function getMarcaje()
{
return $this->marcaje;
}
/**
* Set fechaLimite
*
* @param string $fechaLimite
*
* @return Configuracion
*/
public function setFechaLimite($fechaLimite)
{
$this->fechaLimite = $fechaLimite;
return $this;
}
/**
* Get fechaLimite
*
* @return string
*/
public function getFechaLimite()
{
return $this->fechaLimite;
}
public function getMenuColor(): ?string
{
return $this->menuColor;
}
public function setMenuColor(string $menuColor): self
{
$this->menuColor = $menuColor;
return $this;
}
public function getPrimaryColor(): ?string
{
return $this->primaryColor;
}
public function setPrimaryColor(string $primaryColor): self
{
$this->primaryColor = $primaryColor;
return $this;
}
public function getSecondaryColor(): ?string
{
return $this->secondaryColor;
}
public function setSecondaryColor(string $secondaryColor): self
{
$this->secondaryColor = $secondaryColor;
return $this;
}
public function getWarningColor(): ?string
{
return $this->warningColor;
}
public function setWarningColor(string $warningColor): self
{
$this->warningColor = $warningColor;
return $this;
}
public function getSuccessColor(): ?string
{
return $this->successColor;
}
public function setSuccessColor(string $successColor): self
{
$this->successColor = $successColor;
return $this;
}
public function getDangerColor(): ?string
{
return $this->dangerColor;
}
public function setDangerColor(string $dangerColor): self
{
$this->dangerColor = $dangerColor;
return $this;
}
public function getLoginBackgroundColor(): ?string
{
return $this->loginBackgroundColor;
}
public function setLoginBackgroundColor(string $loginBackgroundColor): self
{
$this->loginBackgroundColor = $loginBackgroundColor;
return $this;
}
public function isMostrarLogoUnionEuropea(): ?bool
{
return $this->mostrarLogoUnionEuropea;
}
public function setMostrarLogoUnionEuropea(bool $mostrarLogoUnionEuropea): self
{
$this->mostrarLogoUnionEuropea = $mostrarLogoUnionEuropea;
return $this;
}
public function getEmail(): Email
{
return $this->email;
}
public function setEmail(Email $email): self
{
$this->email = $email;
return $this;
}
}