src/Entity/ConfiguracionGeneral.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ConfiguracionGeneralRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. #[ORM\Entity(repositoryClass: ConfiguracionGeneralRepository::class)]
  7. class ConfiguracionGeneral
  8. {
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue]
  11. #[ORM\Column(type: 'integer')]
  12. private $id;
  13. #[Assert\NotBlank]
  14. #[Assert\Length(max: 150)]
  15. #[ORM\Column(type: 'string', length: 150)]
  16. private ?string $tituloApp = null;
  17. #[Assert\NotBlank]
  18. #[Assert\Length(max: 255)]
  19. #[ORM\Column(type: 'string', length: 255)]
  20. private ?string $descripcionApp = null;
  21. /**
  22. * Recomendable entre 50/60 caracteres
  23. */
  24. #[Assert\Length(max: 70)]
  25. #[ORM\Column(type: 'string', length: 70, nullable: true)]
  26. private ?string $seoTitle = null;
  27. #[Assert\Length(max: 160)]
  28. #[ORM\Column(type: 'string', length: 160, nullable: true)]
  29. private ?string $seoDescription = null;
  30. #[ORM\Column(type: 'string', nullable: true)]
  31. private ?string $seoKeywords = null;
  32. #[ORM\Column(type: 'array')]
  33. private ?array $colores = [];
  34. #[ORM\Column(type: 'text', nullable: true)]
  35. private ?string $codigoGoogleAnalyticsFront = null;
  36. #[Assert\Url]
  37. #[Assert\Length(max: 255)]
  38. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  39. private ?string $rrssFacebook = null;
  40. #[Assert\Url]
  41. #[Assert\Length(max: 255)]
  42. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  43. private ?string $rrssTwitter = null;
  44. #[Assert\Url]
  45. #[Assert\Length(max: 255)]
  46. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  47. private ?string $rrssInstagram = null;
  48. #[Assert\Url]
  49. #[Assert\Length(max: 255)]
  50. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  51. private ?string $rrssLinkedin = null;
  52. public function getId(): ?int
  53. {
  54. return $this->id;
  55. }
  56. public function getTituloApp(): ?string
  57. {
  58. return $this->tituloApp;
  59. }
  60. public function setTituloApp(?string $tituloApp): self
  61. {
  62. $this->tituloApp = $tituloApp;
  63. return $this;
  64. }
  65. public function getDescripcionApp(): ?string
  66. {
  67. return $this->descripcionApp;
  68. }
  69. public function setDescripcionApp(?string $descripcionApp): self
  70. {
  71. $this->descripcionApp = $descripcionApp;
  72. return $this;
  73. }
  74. public function getColores(): ?array
  75. {
  76. return $this->colores;
  77. }
  78. public function setColores(? array $colores): self
  79. {
  80. $this->colores = $colores;
  81. return $this;
  82. }
  83. public function getSeoTitle(): ?string
  84. {
  85. return $this->seoTitle;
  86. }
  87. /**
  88. * @param mixed $seoTitle
  89. */
  90. public function setSeoTitle(?string $seoTitle): self
  91. {
  92. $this->seoTitle = $seoTitle;
  93. return $this;
  94. }
  95. public function getSeoDescription(): ?string
  96. {
  97. return $this->seoDescription;
  98. }
  99. /**
  100. * @param mixed $seoDescription
  101. */
  102. public function setSeoDescription(?string $seoDescription): self
  103. {
  104. $this->seoDescription = $seoDescription;
  105. return $this;
  106. }
  107. public function getSeoKeywords(): ?string
  108. {
  109. return $this->seoKeywords;
  110. }
  111. /**
  112. * @param mixed $seoKeywords
  113. */
  114. public function setSeoKeywords(?string $seoKeywords): self
  115. {
  116. $this->seoKeywords = $seoKeywords;
  117. return $this;
  118. }
  119. public function getCodigoGoogleAnalyticsFront(): ?string
  120. {
  121. return $this->codigoGoogleAnalyticsFront;
  122. }
  123. public function setCodigoGoogleAnalyticsFront(?string $codigoGoogleAnalyticsFront): self
  124. {
  125. $this->codigoGoogleAnalyticsFront = $codigoGoogleAnalyticsFront;
  126. return $this;
  127. }
  128. public function getRrssFacebook(): ?string
  129. {
  130. return $this->rrssFacebook;
  131. }
  132. public function setRrssFacebook(?string $rrssFacebook): self
  133. {
  134. $this->rrssFacebook = $rrssFacebook;
  135. return $this;
  136. }
  137. public function getRrssTwitter(): ?string
  138. {
  139. return $this->rrssTwitter;
  140. }
  141. public function setRrssTwitter(?string $rrssTwitter): self
  142. {
  143. $this->rrssTwitter = $rrssTwitter;
  144. return $this;
  145. }
  146. public function getRrssInstagram(): ?string
  147. {
  148. return $this->rrssInstagram;
  149. }
  150. public function setRrssInstagram(?string $rrssInstagram): self
  151. {
  152. $this->rrssInstagram = $rrssInstagram;
  153. return $this;
  154. }
  155. public function getRrssLinkedin(): ?string
  156. {
  157. return $this->rrssLinkedin;
  158. }
  159. public function setRrssLinkedin(?string $rrssLinkedin): self
  160. {
  161. $this->rrssLinkedin = $rrssLinkedin;
  162. return $this;
  163. }
  164. }