src/Entity/SettingsBranding.php line 16

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