src/Entity/SettingsBranding.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Constants\BusinessTypeSettingsCompanyConstants;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. /**
  8. * SettingsBranding
  9. */
  10. #[ORM\Entity(repositoryClass: \App\Repository\SettingsBrandingRepository::class)]
  11. #[ORM\Table(name: 'settings_branding')]
  12. class SettingsBranding
  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. * Tipo de acceso: venues | catering | av
  23. *
  24. * @var string
  25. */
  26. #[ORM\Column(name: 'access_type', type: 'string', length: 30, unique: true)]
  27. private $accessType;
  28. /**
  29. * Nombre visible del módulo
  30. *
  31. * @var string
  32. */
  33. #[ORM\Column(name: 'name', type: 'string', length: 255)]
  34. private $name;
  35. /**
  36. * Color primario (hex)
  37. *
  38. * @var string|null
  39. */
  40. #[ORM\Column(name: 'primary_color', type: 'string', length: 7, nullable: true)]
  41. private $primaryColor;
  42. /**
  43. * Color secundario (hex)
  44. *
  45. * @var string|null
  46. */
  47. #[ORM\Column(name: 'secondary_color', type: 'string', length: 7, nullable: true)]
  48. private $secondaryColor;
  49. /**
  50. * Color acento (hex)
  51. *
  52. * @var string|null
  53. */
  54. #[ORM\Column(name: 'accent_color', type: 'string', length: 7, nullable: true)]
  55. private $accentColor;
  56. /**
  57. * Ruta pública al logo
  58. *
  59. * @var string|null
  60. */
  61. #[ORM\Column(name: 'logo_path', type: 'string', length: 255, nullable: true)]
  62. private $logoPath;
  63. /**
  64. * Indica si este branding está activo
  65. *
  66. * @var bool
  67. */
  68. #[ORM\Column(name: 'is_active', type: 'boolean')]
  69. private $isActive = true;
  70. /******************************************
  71. * GETTERS / SETTERS
  72. ******************************************/
  73. /**
  74. * @return int|null
  75. */
  76. public function getId()
  77. {
  78. return $this->id;
  79. }
  80. /**
  81. * @return string|null
  82. */
  83. public function getAccessType()
  84. {
  85. return $this->accessType;
  86. }
  87. /**
  88. * @param string $accessType
  89. * @return $this
  90. */
  91. public function setAccessType($accessType)
  92. {
  93. $this->accessType = $accessType;
  94. return $this;
  95. }
  96. /**
  97. * @return string|null
  98. */
  99. public function getName()
  100. {
  101. return $this->name;
  102. }
  103. /**
  104. * @param string $name
  105. * @return $this
  106. */
  107. public function setName($name)
  108. {
  109. $this->name = $name;
  110. return $this;
  111. }
  112. /**
  113. * @return string|null
  114. */
  115. public function getPrimaryColor()
  116. {
  117. return $this->primaryColor;
  118. }
  119. /**
  120. * @param string|null $primaryColor
  121. * @return $this
  122. */
  123. public function setPrimaryColor($primaryColor)
  124. {
  125. $this->primaryColor = $primaryColor;
  126. return $this;
  127. }
  128. /**
  129. * @return string|null
  130. */
  131. public function getSecondaryColor()
  132. {
  133. return $this->secondaryColor;
  134. }
  135. /**
  136. * @param string|null $secondaryColor
  137. * @return $this
  138. */
  139. public function setSecondaryColor($secondaryColor)
  140. {
  141. $this->secondaryColor = $secondaryColor;
  142. return $this;
  143. }
  144. /**
  145. * @return string|null
  146. */
  147. public function getAccentColor()
  148. {
  149. return $this->accentColor;
  150. }
  151. /**
  152. * @param string|null $accentColor
  153. * @return $this
  154. */
  155. public function setAccentColor($accentColor)
  156. {
  157. $this->accentColor = $accentColor;
  158. return $this;
  159. }
  160. /**
  161. * @return string|null
  162. */
  163. public function getLogoPath()
  164. {
  165. return $this->logoPath;
  166. }
  167. /**
  168. * @param string|null $logoPath
  169. * @return $this
  170. */
  171. public function setLogoPath($logoPath)
  172. {
  173. $this->logoPath = $logoPath;
  174. return $this;
  175. }
  176. /**
  177. * @return bool
  178. */
  179. public function getIsActive()
  180. {
  181. return $this->isActive;
  182. }
  183. /**
  184. * @param bool $isActive
  185. * @return $this
  186. */
  187. public function setIsActive($isActive)
  188. {
  189. $this->isActive = $isActive;
  190. return $this;
  191. }
  192. }