src/Entity/Main/ApiAgency.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
  5. use Symfony\Component\Security\Core\User\UserInterface;
  6. /**
  7.  * ApiAgency
  8.  *
  9.  * @ORM\Table(name="api_agency")
  10.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiAgencyRepository")
  11.  */
  12. class ApiAgency implements UserInterfacePasswordAuthenticatedUserInterface
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer", nullable=false)
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="IDENTITY")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="name", type="string", length=250, nullable=false, options={"default"="''"})
  26.      */
  27.     private $name;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="domain", type="string", length=250, nullable=false, options={"default"="''"})
  32.      */
  33.     private $domain;
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="address", type="text", length=65535, nullable=false)
  38.      */
  39.     private $address;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="phone", type="string", length=250, nullable=false, options={"default"="''"})
  44.      */
  45.     private $phone;
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="email", type="string", length=250, nullable=false, options={"default"="''"})
  50.      */
  51.     private $email;
  52.     /**
  53.      * @var string|null
  54.      *
  55.      * @ORM\Column(name="facebook", type="string", length=250, nullable=true, options={"default"="''"})
  56.      */
  57.     private $facebook;
  58.     /**
  59.      * @var string|null
  60.      *
  61.      * @ORM\Column(name="twitter", type="string", length=250, nullable=true, options={"default"="''"})
  62.      */
  63.     private $twitter;
  64.     /**
  65.      * @var string|null
  66.      *
  67.      * @ORM\Column(name="google", type="string", length=250, nullable=true, options={"default"="''"})
  68.      */
  69.     private $google;
  70.     /**
  71.      * @var string|null
  72.      *
  73.      * @ORM\Column(name="linkedin", type="string", length=250, nullable=true, options={"default"="''"})
  74.      */
  75.     private $linkedin;
  76.     /**
  77.      * @var string|null
  78.      *
  79.      * @ORM\Column(name="instagram", type="string", length=250, nullable=true, options={"default"="''"})
  80.      */
  81.     private $instagram;
  82.     /**
  83.      * @var string|null
  84.      *
  85.      * @ORM\Column(name="tiktok", type="string", length=255, nullable=true, options={"default"="''"})
  86.      */
  87.     private $tiktok;
  88.     /**
  89.      * @var string|null
  90.      *
  91.      * @ORM\Column(name="youtube", type="string", length=250, nullable=true, options={"default"="''"})
  92.      */
  93.     private $youtube;
  94.     /**
  95.      * @var string|null
  96.      *
  97.      * @ORM\Column(name="logo", type="string", length=250, nullable=true, options={"default"="''"})
  98.      */
  99.     private $logo;
  100.     /**
  101.      * @var string|null
  102.      *
  103.      * @ORM\Column(name="logo_movile_email", type="string", length=250, nullable=true, options={"default"="''"})
  104.      */
  105.     private $logoMobileEmail;
  106.     /**
  107.      * @var string|null
  108.      *
  109.      * @ORM\Column(name="logo_contact", type="string", length=250, nullable=true, options={"default"="''"})
  110.      */
  111.     private $logoContact;
  112.     /**
  113.      * @var string|null
  114.      *
  115.      * @ORM\Column(name="logo_fav", type="string", length=250, nullable=true, options={"default"="''"})
  116.      */
  117.     private $logoFav;
  118.     /**
  119.      * @var string|null
  120.      *
  121.      * @ORM\Column(name="logo_aicat", type="string", length=250, nullable=true, options={"default"="''"})
  122.      */
  123.     private $logoAicat;
  124.     /**
  125.      * @var string|null
  126.      *
  127.      * @ORM\Column(name="logo_agente", type="string", length=250, nullable=true, options={"default"="''"})
  128.      */
  129.     private $logoAgente;
  130.     /**
  131.      * @var string|null
  132.      *
  133.      * @ORM\Column(name="logo_miembro", type="string", length=250, nullable=true, options={"default"="''"})
  134.      */
  135.     private $logoMiembro;
  136.     /**
  137.      * @var string|null
  138.      *
  139.      * @ORM\Column(name="banner", type="string", length=250, nullable=true, options={"default"="NULL"})
  140.      */
  141.     private $banner;
  142.     /**
  143.      * @var string|null
  144.      *
  145.      * @ORM\Column(name="banner_url", type="string", length=250, nullable=true, options={"default"="NULL"})
  146.      */
  147.     private $bannerUrl;
  148.     /**
  149.      * @var string|null
  150.      *
  151.      * @ORM\Column(name="default_list_properties", type="string", length=250, nullable=true, options={"default"="''"})
  152.      */
  153.     private $defaultListProperties;
  154.     /**
  155.      * @var string|null
  156.      *
  157.      * @ORM\Column(name="user", type="string", length=250, nullable=true, options={"default"="''"})
  158.      */
  159.     private $user;
  160.     /**
  161.      * @var string The hashed password
  162.      *
  163.      * @ORM\Column(name="password", type="string", length=255, nullable=false)
  164.      */
  165.     private $password '';
  166.     /**
  167.      * @var string|null
  168.      *
  169.      * @ORM\Column(name="color_primary", type="string", length=7, nullable=true, options={"default"="''"})
  170.      */
  171.     private $colorPrimary;
  172.     /**
  173.      * @var string|null
  174.      *
  175.      * @ORM\Column(name="color_secondary", type="string", length=7, nullable=true, options={"default"="''"})
  176.      */
  177.     private $colorSecondary;
  178.     /**
  179.      * @var string|null
  180.      *
  181.      * @ORM\Column(name="primary_foot_1", type="string", length=7, nullable=true, options={"default"="''"})
  182.      */
  183.     private $primaryFoot1;
  184.     /**
  185.      * @var string|null
  186.      *
  187.      * @ORM\Column(name="primary_foot_2", type="string", length=7, nullable=true, options={"default"="''"})
  188.      */
  189.     private $primaryFoot2;
  190.     /**
  191.      * @var int
  192.      *
  193.      * @ORM\Column(name="filter_header", type="integer", nullable=false, options={"default"="1"})
  194.      */
  195.     private $filterHeader 1;
  196.     /**
  197.      * @var int
  198.      *
  199.      * @ORM\Column(name="newsletter", type="integer", nullable=false, options={"default"="1"})
  200.      */
  201.     private $newsletter 1;
  202.     /**
  203.      * @var bool
  204.      *
  205.      * @ORM\Column(name="first_time", type="boolean")
  206.      */
  207.     private $firstTime ;
  208.     /**
  209.      * @var bool
  210.      *
  211.      * @ORM\Column(name="activation", type="boolean")
  212.      */
  213.     private $activation ;
  214.     /**
  215.      * @ORM\Column(type="json")
  216.      */
  217.     private $roles = [];
  218.     public function getPassword(): ?string
  219.     {
  220.         return $this->password;
  221.     }
  222.     public function setPassword(string $password): self
  223.     {
  224.         $this->password $password;
  225.         return $this;
  226.     }
  227.     public function getId(): ?int
  228.     {
  229.         return $this->id;
  230.     }
  231.     public function getName(): ?string
  232.     {
  233.         return $this->name;
  234.     }
  235.     public function setName(string $name): self
  236.     {
  237.         $this->name $name;
  238.         return $this;
  239.     }
  240.     public function getDomain(): ?string
  241.     {
  242.         return $this->domain;
  243.     }
  244.     public function setDomain(string $domain): self
  245.     {
  246.         $this->domain $domain;
  247.         return $this;
  248.     }
  249.     public function getAddress(): ?string
  250.     {
  251.         return $this->address;
  252.     }
  253.     public function setAddress(string $address): self
  254.     {
  255.         $this->address $address;
  256.         return $this;
  257.     }
  258.     public function getPhone(): ?string
  259.     {
  260.         return $this->phone;
  261.     }
  262.     public function setPhone(string $phone): self
  263.     {
  264.         $this->phone $phone;
  265.         return $this;
  266.     }
  267.     public function getEmail(): ?string
  268.     {
  269.         return $this->email;
  270.     }
  271.     public function setEmail(string $email): self
  272.     {
  273.         $this->email $email;
  274.         return $this;
  275.     }
  276.     public function getFacebook(): ?string
  277.     {
  278.         return $this->facebook;
  279.     }
  280.     public function setFacebook(?string $facebook): self
  281.     {
  282.         $this->facebook $facebook;
  283.         return $this;
  284.     }
  285.     public function getTwitter(): ?string
  286.     {
  287.         return $this->twitter;
  288.     }
  289.     public function setTwitter(?string $twitter): self
  290.     {
  291.         $this->twitter $twitter;
  292.         return $this;
  293.     }
  294.     public function getGoogle(): ?string
  295.     {
  296.         return $this->google;
  297.     }
  298.     public function setGoogle(?string $google): self
  299.     {
  300.         $this->google $google;
  301.         return $this;
  302.     }
  303.     public function getLinkedin(): ?string
  304.     {
  305.         return $this->linkedin;
  306.     }
  307.     public function setLinkedin(?string $linkedin): self
  308.     {
  309.         $this->linkedin $linkedin;
  310.         return $this;
  311.     }
  312.     public function getInstagram(): ?string
  313.     {
  314.         return $this->instagram;
  315.     }
  316.     public function setInstagram(?string $instagram): self
  317.     {
  318.         $this->instagram $instagram;
  319.         return $this;
  320.     }
  321.     public function getTiktok(): ?string
  322.     {
  323.         return $this->tiktok;
  324.     }
  325.     public function setTiktok(?string $tiktok): self
  326.     {
  327.         $this->tiktok $tiktok;
  328.         return $this;
  329.     }
  330.     public function getYoutube(): ?string
  331.     {
  332.         return $this->youtube;
  333.     }
  334.     public function setYoutube(?string $youtube): self
  335.     {
  336.         $this->youtube $youtube;
  337.         return $this;
  338.     }
  339.     public function getLogo(): ?string
  340.     {
  341.         return $this->logo;
  342.     }
  343.     public function setLogo(?string $logo): self
  344.     {
  345.         $this->logo $logo;
  346.         return $this;
  347.     }
  348.     public function getLogoMobileEmail(): ?string
  349.     {
  350.         return $this->logoMobileEmail;
  351.     }
  352.     public function setLogoMobileEmail(?string $logoMobileEmail): self
  353.     {
  354.         $this->logoMobileEmail $logoMobileEmail;
  355.         return $this;
  356.     }
  357.     public function getLogoContact(): ?string
  358.     {
  359.         return $this->logoContact;
  360.     }
  361.     public function setLogoContact(?string $logoContact): self
  362.     {
  363.         $this->logoContact $logoContact;
  364.         return $this;
  365.     }
  366.     public function getLogoFav(): ?string
  367.     {
  368.         return $this->logoFav;
  369.     }
  370.     public function setLogoFav(?string $logoFav): self
  371.     {
  372.         $this->logoFav $logoFav;
  373.         return $this;
  374.     }
  375.     public function getLogoAicat(): ?string
  376.     {
  377.         return $this->logoAicat;
  378.     }
  379.     public function setLogoAicat(?string $logoAicat): self
  380.     {
  381.         $this->logoAicat $logoAicat;
  382.         return $this;
  383.     }
  384.     public function getLogoAgente(): ?string
  385.     {
  386.         return $this->logoAgente;
  387.     }
  388.     public function setLogoAgente(?string $logoAgente): self
  389.     {
  390.         $this->logoAgente $logoAgente;
  391.         return $this;
  392.     }
  393.     public function getLogoMiembro(): ?string
  394.     {
  395.         return $this->logoMiembro;
  396.     }
  397.     public function setLogoMiembro(?string $logoMiembro): self
  398.     {
  399.         $this->logoMiembro $logoMiembro;
  400.         return $this;
  401.     }
  402.     public function getBanner(): ?string
  403.     {
  404.         return $this->banner;
  405.     }
  406.     public function setBanner(?string $banner): self
  407.     {
  408.         $this->banner $banner;
  409.         return $this;
  410.     }
  411.     public function getBannerUrl(): ?string
  412.     {
  413.         return $this->bannerUrl;
  414.     }
  415.     public function setBannerUrl(?string $bannerUrl): self
  416.     {
  417.         $this->bannerUrl $bannerUrl;
  418.         return $this;
  419.     }
  420.     public function getDefaultListProperties(): ?string
  421.     {
  422.         return $this->defaultListProperties;
  423.     }
  424.     public function setDefaultListProperties(?string $defaultListProperties): self
  425.     {
  426.         $this->defaultListProperties $defaultListProperties;
  427.         return $this;
  428.     }
  429.     public function getUser(): ?string
  430.     {
  431.         return $this->user;
  432.     }
  433.     public function setUser(?string $user): self
  434.     {
  435.         $this->user $user;
  436.         return $this;
  437.     }
  438.     /**
  439.      * @deprecated since Symfony 5.3, use getUserIdentifier instead
  440.      */
  441.     public function getUsername(): string
  442.     {
  443.         return (string) $this->user;
  444.     }
  445.     public function setUsername(string $user): self
  446.     {
  447.         $this->user $user;
  448.         return $this;
  449.     }
  450.     public function getColorPrimary(): ?string
  451.     {
  452.         return $this->colorPrimary;
  453.     }
  454.     public function setColorPrimary(?string $colorPrimary): self
  455.     {
  456.         $this->colorPrimary $colorPrimary;
  457.         return $this;
  458.     }
  459.     public function getColorSecondary(): ?string
  460.     {
  461.         return $this->colorSecondary;
  462.     }
  463.     public function setColorSecondary(?string $colorSecondary): self
  464.     {
  465.         $this->colorSecondary $colorSecondary;
  466.         return $this;
  467.     }
  468.     public function getPrimaryFoot1(): ?string
  469.     {
  470.         return $this->primaryFoot1;
  471.     }
  472.     public function setPrimaryFoot1(?string $primaryFoot1): self
  473.     {
  474.         $this->primaryFoot1 $primaryFoot1;
  475.         return $this;
  476.     }
  477.     public function getPrimaryFoot2(): ?string
  478.     {
  479.         return $this->primaryFoot2;
  480.     }
  481.     public function setPrimaryFoot2(?string $primaryFoot2): self
  482.     {
  483.         $this->primaryFoot2 $primaryFoot2;
  484.         return $this;
  485.     }
  486.     public function getFilterHeader(): ?int
  487.     {
  488.         return $this->filterHeader;
  489.     }
  490.     public function setFilterHeader(int $filterHeader): self
  491.     {
  492.         $this->filterHeader $filterHeader;
  493.         return $this;
  494.     }
  495.     public function getNewsletter(): ?int
  496.     {
  497.         return $this->newsletter;
  498.     }
  499.     public function setNewsletter(int $newsletter): self
  500.     {
  501.         $this->newsletter $newsletter;
  502.         return $this;
  503.     }
  504.     public function getFirstTime(): ?bool
  505.     {
  506.         return $this->firstTime;
  507.     }
  508.     public function setFirstTime(bool $firstTime): self
  509.     {
  510.         $this->firstTime $firstTime;
  511.         return $this;
  512.     }
  513.     public function getActivation(): ?bool
  514.     {
  515.         return $this->activation;
  516.     }
  517.     public function setActivation(bool $activation): self
  518.     {
  519.         $this->activation $activation;
  520.         return $this;
  521.     }
  522.     /**
  523.      * A visual identifier that represents this user.
  524.      *
  525.      * @see UserInterface
  526.      */
  527.     public function getUserIdentifier(): string
  528.     {
  529.         return (string) $this->user;
  530.     }
  531.     /**
  532.      * Returning a salt is only needed, if you are not using a modern
  533.      * hashing algorithm (e.g. bcrypt or sodium) in your security.yaml.
  534.      *
  535.      * @see UserInterface
  536.      */
  537.     public function getSalt(): ?string
  538.     {
  539.         return null;
  540.     }
  541.     /**
  542.      * @see UserInterface
  543.      */
  544.     public function eraseCredentials()
  545.     {
  546.         // If you store any temporary, sensitive data on the user, clear it here
  547.         // $this->plainPassword = null;
  548.     }
  549.     /**
  550.      * @see UserInterface
  551.      */
  552.     public function getRoles(): array
  553.     {
  554.         $roles $this->roles;
  555.         // guarantee every user at least has ROLE_USER
  556.         $roles[] = 'ROLE_USER';
  557.         return array_unique($roles);
  558.     }
  559.     public function getRolesString()
  560.     {
  561.         $roles $this->roles;
  562.         return $roles[0];
  563.     }
  564.     public function setRoles(array $roles): self
  565.     {
  566.         $this->roles $roles;
  567.         return $this;
  568.     }
  569.     
  570. }