src/Entity/Configuracion.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Embeddable\Email;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * Configuracion
  8.  */
  9. #[Gedmo\Loggable]
  10. #[ORM\Table(name'configuracion')]
  11. #[ORM\Entity(repositoryClass'App\Repository\ConfiguracionRepository')]
  12. class Configuracion
  13. {
  14.     /**
  15.      * @var int
  16.      */
  17.     #[ORM\Column(name'id'type'integer')]
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue(strategy'AUTO')]
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      */
  24.     #[ORM\Column(name'logo'type'string'length255nullabletrue)]
  25.     #[Gedmo\Versioned]
  26.     private $logo;
  27.     /**
  28.      * @var string
  29.      */
  30.     #[ORM\Column(name'logoblanco'type'string'length255nullabletrue)]
  31.     #[Gedmo\Versioned]
  32.     private $logoblanco;
  33.     /**
  34.      * @var string
  35.      */
  36.     #[ORM\Column(name'isos'type'string'length255nullabletrue)]
  37.     #[Gedmo\Versioned]
  38.     private $isos;
  39.     /**
  40.      * @var string
  41.      */
  42.     #[ORM\Column(name'logocuadrado'type'string'length255nullabletrue)]
  43.     #[Gedmo\Versioned]
  44.     private $logocuadrado;
  45.     #[ORM\Column(name'favicon'type'string'length255nullabletrue)]
  46.     #[Gedmo\Versioned]
  47.     private $favicon;
  48.     /**
  49.      * @var string
  50.      */
  51.     #[ORM\Column(name'firma'type'string'length255nullabletrue)]
  52.     #[Gedmo\Versioned]
  53.     private $firma;
  54.     #[ORM\Column(name'imagen_informativa'type'string'length255nullabletrue)]
  55.     #[Gedmo\Versioned]
  56.     private $imagenInformativa;
  57.     #[ORM\Column(name'color'type'string'length255nullabletrue)]
  58.     #[Gedmo\Versioned]
  59.     private ?string $color;
  60.     #[ORM\Column(type'string'length7)]
  61.     #[Gedmo\Versioned]
  62.     private string $loginBackgroundColor;
  63.     #[ORM\Column(type'string'length7)]
  64.     #[Gedmo\Versioned]
  65.     private string $menuColor;
  66.     #[ORM\Column(type'string'length7)]
  67.     #[Gedmo\Versioned]
  68.     private string $primaryColor;
  69.     #[ORM\Column(type'string'length7)]
  70.     #[Gedmo\Versioned]
  71.     private string $secondaryColor;
  72.     #[ORM\Column(type'string'length7)]
  73.     #[Gedmo\Versioned]
  74.     private string $warningColor;
  75.     #[ORM\Column(type'string'length7)]
  76.     #[Gedmo\Versioned]
  77.     private string $dangerColor;
  78.     #[ORM\Column(type'string'length7)]
  79.     #[Gedmo\Versioned]
  80.     private string $successColor;
  81.     /**
  82.      * @var string
  83.      */
  84.     #[ORM\Column(name'url'type'string'length255nullabletrue)]
  85.     #[Gedmo\Versioned]
  86.     private $url;
  87.     /**
  88.      * @var string
  89.      */
  90.     #[ORM\Column(name'correo'type'string'length255nullabletrue)]
  91.     #[Gedmo\Versioned]
  92.     private $correo;
  93.     /**
  94.      * @var string
  95.      */
  96.     #[ORM\Column(name'cif'type'string'length255nullabletrue)]
  97.     #[Gedmo\Versioned]
  98.     private $cif;
  99.     /**
  100.      * @var string
  101.      */
  102.     #[ORM\Column(name'ccc'type'string'length255nullabletrue)]
  103.     #[Gedmo\Versioned]
  104.     private $ccc;
  105.     /**
  106.      * @var int
  107.      */
  108.     #[ORM\Column(name'turno'type'integer'nullabletrue)]
  109.     #[Gedmo\Versioned]
  110.     private $turno;
  111.     /**
  112.      * @var int
  113.      */
  114.     #[ORM\Column(name'marcaje'type'integer'nullabletrue)]
  115.     #[Gedmo\Versioned]
  116.     private $marcaje;
  117.     /**
  118.      * @var int
  119.      */
  120.     #[ORM\Column(name'festivo'type'integer'nullabletrue)]
  121.     #[Gedmo\Versioned]
  122.     private $festivo;
  123.     /**
  124.      * @var int
  125.      */
  126.     #[ORM\Column(name'sabado'type'integer'nullabletrue)]
  127.     #[Gedmo\Versioned]
  128.     private $sabado;
  129.     /**
  130.      * @var int
  131.      */
  132.     #[ORM\Column(name'domingo'type'integer'nullabletrue)]
  133.     #[Gedmo\Versioned]
  134.     private $domingo;
  135.     /**
  136.      * @var string
  137.      */
  138.     #[ORM\Column(name'fechaLimite'type'string'length255nullabletrue)]
  139.     #[Gedmo\Versioned]
  140.     private $fechaLimite;
  141.     /**
  142.      * @var int
  143.      */
  144.     #[ORM\Column(name'usuario'type'integer')]
  145.     #[Gedmo\Versioned]
  146.     private $usuario;
  147.     #[ORM\Column(type'boolean'options: ['default' => false])]
  148.     private bool $mostrarLogoUnionEuropea false;
  149.     #[ORM\Embedded(class: Email::class, columnPrefix'email_')]
  150.     private Email $email;
  151.     public function __construct()
  152.     {
  153.         $this->email = new Email();
  154.     }
  155.     /**
  156.      * Get id
  157.      *
  158.      * @return integer
  159.      */
  160.     public function getId()
  161.     {
  162.         return $this->id;
  163.     }
  164.     /**
  165.      * Set logo
  166.      *
  167.      * @param string $logo
  168.      *
  169.      * @return Configuracion
  170.      */
  171.     public function setLogo($logo)
  172.     {
  173.         $this->logo $logo;
  174.         return $this;
  175.     }
  176.     /**
  177.      * Get logo for documents
  178.      *
  179.      * @return string
  180.      */
  181.     public function getLogo()
  182.     {
  183.         return $this->logo;
  184.     }
  185.     /**
  186.      * Set logoblanco
  187.      *
  188.      * @param string $logoblanco
  189.      *
  190.      * @return Configuracion
  191.      */
  192.     public function setLogoblanco($logoblanco)
  193.     {
  194.         $this->logoblanco $logoblanco;
  195.         return $this;
  196.     }
  197.     /**
  198.      * Get logoblanco for login page
  199.      *
  200.      * @return string
  201.      */
  202.     public function getLogoblanco()
  203.     {
  204.         return $this->logoblanco;
  205.     }
  206.     /**
  207.      * Set logocuadrado
  208.      *
  209.      * @param string $logocuadrado
  210.      *
  211.      * @return Configuracion
  212.      */
  213.     public function setLogocuadrado($logocuadrado)
  214.     {
  215.         $this->logocuadrado $logocuadrado;
  216.         return $this;
  217.     }
  218.     /**
  219.      * Get logocuadrado for sidebar menu
  220.      *
  221.      * @return string
  222.      */
  223.     public function getLogocuadrado()
  224.     {
  225.         return $this->logocuadrado;
  226.     }
  227.     public function setFavicon(?string $favicon): self
  228.     {
  229.         $this->favicon $favicon;
  230.         return $this;
  231.     }
  232.     public function getFavicon(): ?string
  233.     {
  234.         return $this->favicon;
  235.     }
  236.     /**
  237.      * Set isos
  238.      *
  239.      * @param string $isos
  240.      *
  241.      * @return Configuracion
  242.      */
  243.     public function setIsos($isos)
  244.     {
  245.         $this->isos $isos;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Get isos
  250.      *
  251.      * @return string
  252.      */
  253.     public function getIsos()
  254.     {
  255.         return $this->isos;
  256.     }
  257.     public function getImagenInformativa(): ?string
  258.     {
  259.         return $this->imagenInformativa;
  260.     }
  261.     public function setImagenInformativa(?string $imagenInformativa): void
  262.     {
  263.         $this->imagenInformativa $imagenInformativa;
  264.     }
  265.     /**
  266.      * Set color
  267.      *
  268.      * @param string $color
  269.      *
  270.      * @return Configuracion
  271.      */
  272.     public function setColor($color)
  273.     {
  274.         $this->color $color;
  275.         return $this;
  276.     }
  277.     /**
  278.      * Get color
  279.      *
  280.      * @return string
  281.      */
  282.     public function getColor()
  283.     {
  284.         return $this->color;
  285.     }
  286.     /**
  287.      * Set correo
  288.      *
  289.      * @param string $correo
  290.      *
  291.      * @return Configuracion
  292.      */
  293.     public function setCorreo($correo)
  294.     {
  295.         $this->correo $correo;
  296.         return $this;
  297.     }
  298.     /**
  299.      * Get correo
  300.      *
  301.      * @return string
  302.      */
  303.     public function getCorreo()
  304.     {
  305.         return $this->correo;
  306.     }
  307.     /**
  308.      * Set url
  309.      *
  310.      * @param string $url
  311.      *
  312.      * @return Configuracion
  313.      */
  314.     public function setUrl($url)
  315.     {
  316.         $this->url $url;
  317.         return $this;
  318.     }
  319.     /**
  320.      * Get url
  321.      *
  322.      * @return string
  323.      */
  324.     public function getUrl()
  325.     {
  326.         return $this->url;
  327.     }
  328.     /**
  329.      * Set cif
  330.      *
  331.      * @param string $cif
  332.      *
  333.      * @return Configuracion
  334.      */
  335.     public function setCif($cif)
  336.     {
  337.         $this->cif $cif;
  338.         return $this;
  339.     }
  340.     /**
  341.      * Get cif
  342.      *
  343.      * @return string
  344.      */
  345.     public function getCif()
  346.     {
  347.         return $this->cif;
  348.     }
  349.     /**
  350.      * Set ccc
  351.      *
  352.      * @param string $ccc
  353.      *
  354.      * @return Configuracion
  355.      */
  356.     public function setCcc($ccc)
  357.     {
  358.         $this->ccc $ccc;
  359.         return $this;
  360.     }
  361.     /**
  362.      * Get ccc
  363.      *
  364.      * @return string
  365.      */
  366.     public function getCcc()
  367.     {
  368.         return $this->ccc;
  369.     }
  370.     /**
  371.      * Set usuario
  372.      *
  373.      * @param integer $usuario
  374.      *
  375.      * @return Configuracion
  376.      */
  377.     public function setUsuario($usuario)
  378.     {
  379.         $this->usuario $usuario;
  380.         return $this;
  381.     }
  382.     /**
  383.      * Get usuario
  384.      * Nº máximo de usuarios que pueden crear en el sistema
  385.      *
  386.      * @return integer
  387.      */
  388.     public function getUsuario()
  389.     {
  390.         return $this->usuario;
  391.     }
  392.     /**
  393.      * Set firma
  394.      *
  395.      * @param string $firma
  396.      *
  397.      * @return Configuracion
  398.      */
  399.     public function setFirma($firma)
  400.     {
  401.         $this->firma $firma;
  402.         return $this;
  403.     }
  404.     /**
  405.      * Get firma
  406.      *
  407.      * @return string
  408.      */
  409.     public function getFirma()
  410.     {
  411.         return $this->firma;
  412.     }
  413.     /**
  414.      * Set festivo
  415.      *
  416.      * @param integer $festivo
  417.      *
  418.      * @return Configuracion
  419.      */
  420.     public function setFestivo($festivo)
  421.     {
  422.         $this->festivo $festivo;
  423.         return $this;
  424.     }
  425.     /**
  426.      * Get festivo
  427.      *
  428.      * @return integer
  429.      */
  430.     public function getFestivo()
  431.     {
  432.         return $this->festivo;
  433.     }
  434.     /**
  435.      * Set sabado
  436.      *
  437.      * @param integer $sabado
  438.      *
  439.      * @return Configuracion
  440.      */
  441.     public function setSabado($sabado)
  442.     {
  443.         $this->sabado $sabado;
  444.         return $this;
  445.     }
  446.     /**
  447.      * Get sabado
  448.      *
  449.      * @return integer
  450.      */
  451.     public function getSabado()
  452.     {
  453.         return $this->sabado;
  454.     }
  455.     /**
  456.      * Set domingo
  457.      *
  458.      * @param integer $domingo
  459.      *
  460.      * @return Configuracion
  461.      */
  462.     public function setDomingo($domingo)
  463.     {
  464.         $this->domingo $domingo;
  465.         return $this;
  466.     }
  467.     /**
  468.      * Get domingo
  469.      *
  470.      * @return integer
  471.      */
  472.     public function getDomingo()
  473.     {
  474.         return $this->domingo;
  475.     }
  476.     /**
  477.      * Set turno
  478.      *
  479.      * @param integer $turno
  480.      *
  481.      * @return Configuracion
  482.      */
  483.     public function setTurno($turno)
  484.     {
  485.         $this->turno $turno;
  486.         return $this;
  487.     }
  488.     /**
  489.      * Get turno
  490.      *
  491.      * @return integer
  492.      */
  493.     public function getTurno()
  494.     {
  495.         return $this->turno;
  496.     }
  497.     /**
  498.      * Set marcaje
  499.      *
  500.      * @param integer $marcaje
  501.      *
  502.      * @return Configuracion
  503.      */
  504.     public function setMarcaje($marcaje)
  505.     {
  506.         $this->marcaje $marcaje;
  507.         return $this;
  508.     }
  509.     /**
  510.      * Get marcaje
  511.      *
  512.      * @return integer
  513.      */
  514.     public function getMarcaje()
  515.     {
  516.         return $this->marcaje;
  517.     }
  518.     /**
  519.      * Set fechaLimite
  520.      *
  521.      * @param string $fechaLimite
  522.      *
  523.      * @return Configuracion
  524.      */
  525.     public function setFechaLimite($fechaLimite)
  526.     {
  527.         $this->fechaLimite $fechaLimite;
  528.         return $this;
  529.     }
  530.     /**
  531.      * Get fechaLimite
  532.      *
  533.      * @return string
  534.      */
  535.     public function getFechaLimite()
  536.     {
  537.         return $this->fechaLimite;
  538.     }
  539.     public function getMenuColor(): ?string
  540.     {
  541.         return $this->menuColor;
  542.     }
  543.     public function setMenuColor(string $menuColor): self
  544.     {
  545.         $this->menuColor $menuColor;
  546.         return $this;
  547.     }
  548.     public function getPrimaryColor(): ?string
  549.     {
  550.         return $this->primaryColor;
  551.     }
  552.     public function setPrimaryColor(string $primaryColor): self
  553.     {
  554.         $this->primaryColor $primaryColor;
  555.         return $this;
  556.     }
  557.     public function getSecondaryColor(): ?string
  558.     {
  559.         return $this->secondaryColor;
  560.     }
  561.     public function setSecondaryColor(string $secondaryColor): self
  562.     {
  563.         $this->secondaryColor $secondaryColor;
  564.         return $this;
  565.     }
  566.     public function getWarningColor(): ?string
  567.     {
  568.         return $this->warningColor;
  569.     }
  570.     public function setWarningColor(string $warningColor): self
  571.     {
  572.         $this->warningColor $warningColor;
  573.         return $this;
  574.     }
  575.     public function getSuccessColor(): ?string
  576.     {
  577.         return $this->successColor;
  578.     }
  579.     public function setSuccessColor(string $successColor): self
  580.     {
  581.         $this->successColor $successColor;
  582.         return $this;
  583.     }
  584.     public function getDangerColor(): ?string
  585.     {
  586.         return $this->dangerColor;
  587.     }
  588.     public function setDangerColor(string $dangerColor): self
  589.     {
  590.         $this->dangerColor $dangerColor;
  591.         return $this;
  592.     }
  593.     public function getLoginBackgroundColor(): ?string
  594.     {
  595.         return $this->loginBackgroundColor;
  596.     }
  597.     public function setLoginBackgroundColor(string $loginBackgroundColor): self
  598.     {
  599.         $this->loginBackgroundColor $loginBackgroundColor;
  600.         return $this;
  601.     }
  602.     public function isMostrarLogoUnionEuropea(): ?bool
  603.     {
  604.         return $this->mostrarLogoUnionEuropea;
  605.     }
  606.     public function setMostrarLogoUnionEuropea(bool $mostrarLogoUnionEuropea): self
  607.     {
  608.         $this->mostrarLogoUnionEuropea $mostrarLogoUnionEuropea;
  609.         return $this;
  610.     }
  611.     public function getEmail(): Email
  612.     {
  613.         return $this->email;
  614.     }
  615.     public function setEmail(Email $email): self
  616.     {
  617.         $this->email $email;
  618.         return $this;
  619.     }
  620. }