<?php
namespace App\Entity;
use App\Repository\ConfiguracionGeneralRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: ConfiguracionGeneralRepository::class)]
class ConfiguracionGeneral
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[Assert\NotBlank]
#[Assert\Length(max: 150)]
#[ORM\Column(type: 'string', length: 150)]
private ?string $tituloApp = null;
#[Assert\NotBlank]
#[Assert\Length(max: 255)]
#[ORM\Column(type: 'string', length: 255)]
private ?string $descripcionApp = null;
/**
* Recomendable entre 50/60 caracteres
*/
#[Assert\Length(max: 70)]
#[ORM\Column(type: 'string', length: 70, nullable: true)]
private ?string $seoTitle = null;
#[Assert\Length(max: 160)]
#[ORM\Column(type: 'string', length: 160, nullable: true)]
private ?string $seoDescription = null;
#[ORM\Column(type: 'string', nullable: true)]
private ?string $seoKeywords = null;
#[ORM\Column(type: 'array')]
private ?array $colores = [];
#[ORM\Column(type: 'text', nullable: true)]
private ?string $codigoGoogleAnalyticsFront = null;
#[Assert\Url]
#[Assert\Length(max: 255)]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $rrssFacebook = null;
#[Assert\Url]
#[Assert\Length(max: 255)]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $rrssTwitter = null;
#[Assert\Url]
#[Assert\Length(max: 255)]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $rrssInstagram = null;
#[Assert\Url]
#[Assert\Length(max: 255)]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $rrssLinkedin = null;
public function getId(): ?int
{
return $this->id;
}
public function getTituloApp(): ?string
{
return $this->tituloApp;
}
public function setTituloApp(?string $tituloApp): self
{
$this->tituloApp = $tituloApp;
return $this;
}
public function getDescripcionApp(): ?string
{
return $this->descripcionApp;
}
public function setDescripcionApp(?string $descripcionApp): self
{
$this->descripcionApp = $descripcionApp;
return $this;
}
public function getColores(): ?array
{
return $this->colores;
}
public function setColores(? array $colores): self
{
$this->colores = $colores;
return $this;
}
public function getSeoTitle(): ?string
{
return $this->seoTitle;
}
/**
* @param mixed $seoTitle
*/
public function setSeoTitle(?string $seoTitle): self
{
$this->seoTitle = $seoTitle;
return $this;
}
public function getSeoDescription(): ?string
{
return $this->seoDescription;
}
/**
* @param mixed $seoDescription
*/
public function setSeoDescription(?string $seoDescription): self
{
$this->seoDescription = $seoDescription;
return $this;
}
public function getSeoKeywords(): ?string
{
return $this->seoKeywords;
}
/**
* @param mixed $seoKeywords
*/
public function setSeoKeywords(?string $seoKeywords): self
{
$this->seoKeywords = $seoKeywords;
return $this;
}
public function getCodigoGoogleAnalyticsFront(): ?string
{
return $this->codigoGoogleAnalyticsFront;
}
public function setCodigoGoogleAnalyticsFront(?string $codigoGoogleAnalyticsFront): self
{
$this->codigoGoogleAnalyticsFront = $codigoGoogleAnalyticsFront;
return $this;
}
public function getRrssFacebook(): ?string
{
return $this->rrssFacebook;
}
public function setRrssFacebook(?string $rrssFacebook): self
{
$this->rrssFacebook = $rrssFacebook;
return $this;
}
public function getRrssTwitter(): ?string
{
return $this->rrssTwitter;
}
public function setRrssTwitter(?string $rrssTwitter): self
{
$this->rrssTwitter = $rrssTwitter;
return $this;
}
public function getRrssInstagram(): ?string
{
return $this->rrssInstagram;
}
public function setRrssInstagram(?string $rrssInstagram): self
{
$this->rrssInstagram = $rrssInstagram;
return $this;
}
public function getRrssLinkedin(): ?string
{
return $this->rrssLinkedin;
}
public function setRrssLinkedin(?string $rrssLinkedin): self
{
$this->rrssLinkedin = $rrssLinkedin;
return $this;
}
}