<?php
declare(strict_types=1);
namespace App\Entity;
use App\Repository\DomainRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DomainRepository::class)
*/
class Domain
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $fullName;
/**
* @ORM\Column(type="string", length=100)
*/
private $shortcut;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $main;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mainColor;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondColor;
/**
* @ORM\Column(type="string", length=500, nullable=true)
*/
private $linkSocialFacebook;
/**
* @ORM\Column(type="string", length=500, nullable=true)
*/
private $linkSocialInstagram;
/**
* @ORM\Column(type="string", length=500, nullable=true)
*/
private $linkSocialYoutube;
/**
* @ORM\Column(type="string", length=500, nullable=true)
*/
private $linkSocialTwitter;
/**
* @ORM\Column(type="string", length=500, nullable=true)
*/
private $linkSocialLinkedin;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $catalog;
/**
* @ORM\ManyToMany(targetEntity=DomainLang::class, inversedBy="domains")
*/
private $domainLangs;
/**
* @ORM\ManyToOne(targetEntity="SonataMediaMedia")
*/
private $logo;
/**
* @ORM\ManyToOne(targetEntity="SonataMediaMedia")
*/
private $logoDark;
/**
* @ORM\ManyToOne(targetEntity="SonataMediaMedia")
*/
private $favicon;
public function __construct()
{
$this->domainLangs = new ArrayCollection();
$this->catalog = "universal";
$this->main = false;
}
public function __toString()
{
return $this->name;
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getMain(): ?bool
{
return $this->main;
}
public function setMain(?bool $main): self
{
$this->main = $main;
return $this;
}
/**
* @return Collection|Menu[]
*/
public function getMenus(): Collection
{
return $this->menus;
}
public function addMenu(Menu $menu): self
{
if (!$this->menus->contains($menu)) {
$this->menus[] = $menu;
$menu->setDomain($this);
}
return $this;
}
public function removeMenu(Menu $menu): self
{
if ($this->menus->removeElement($menu)) {
// set the owning side to null (unless already changed)
if ($menu->getDomain() === $this) {
$menu->setDomain(null);
}
}
return $this;
}
/**
* @return Collection|DomainLang[]
*/
public function getDomainLangs(): Collection
{
return $this->domainLangs;
}
public function addDomainLang(DomainLang $domainLang): self
{
if (!$this->domainLangs->contains($domainLang)) {
$this->domainLangs[] = $domainLang;
}
return $this;
}
public function removeDomainLang(DomainLang $domainLang): self
{
$this->domainLangs->removeElement($domainLang);
return $this;
}
/**
* @return mixed
*/
public function getCatalog()
{
return $this->catalog;
}
/**
* @param mixed $catalog
*/
public function setCatalog($catalog)
{
$this->catalog = $catalog;
}
/**
* @return mixed
*/
public function getMainColor()
{
return $this->mainColor;
}
/**
* @param mixed $mainColor
*/
public function setMainColor($mainColor)
{
$this->mainColor = $mainColor;
}
/**
* @return mixed
*/
public function getSecondColor()
{
return $this->secondColor;
}
/**
* @param mixed $secondColor
*/
public function setSecondColor($secondColor)
{
$this->secondColor = $secondColor;
}
/**
* @return mixed
*/
public function getLinkSocialFacebook()
{
return $this->linkSocialFacebook;
}
/**
* @param mixed $linkSocialFacebook
*/
public function setLinkSocialFacebook($linkSocialFacebook)
{
$this->linkSocialFacebook = $linkSocialFacebook;
}
/**
* @return mixed
*/
public function getLinkSocialInstagram()
{
return $this->linkSocialInstagram;
}
/**
* @param mixed $linkSocialInstagram
*/
public function setLinkSocialInstagram($linkSocialInstagram)
{
$this->linkSocialInstagram = $linkSocialInstagram;
}
/**
* @return mixed
*/
public function getLinkSocialYoutube()
{
return $this->linkSocialYoutube;
}
/**
* @param mixed $linkSocialYoutube
*/
public function setLinkSocialYoutube($linkSocialYoutube)
{
$this->linkSocialYoutube = $linkSocialYoutube;
}
/**
* @return mixed
*/
public function getLinkSocialTwitter()
{
return $this->linkSocialTwitter;
}
/**
* @param mixed $linkSocialTwitter
*/
public function setLinkSocialTwitter($linkSocialTwitter)
{
$this->linkSocialTwitter = $linkSocialTwitter;
}
/**
* @return mixed
*/
public function getLinkSocialLinkedin()
{
return $this->linkSocialLinkedin;
}
/**
* @param mixed $linkSocialLinkedin
*/
public function setLinkSocialLinkedin($linkSocialLinkedin)
{
$this->linkSocialLinkedin = $linkSocialLinkedin;
}
/**
* @return mixed
*/
public function getShortcut()
{
return $this->shortcut;
}
/**
* @param mixed $shortcut
*/
public function setShortcut($shortcut)
{
$this->shortcut = $shortcut;
}
/**
* @return mixed
*/
public function getFavicon()
{
return $this->favicon;
}
/**
* @param mixed $favicon
*/
public function setFavicon($favicon)
{
$this->favicon = $favicon;
}
/**
* @return mixed
*/
public function getFullName()
{
return $this->fullName;
}
/**
* @param mixed $fullName
*/
public function setFullName($fullName)
{
$this->fullName = $fullName;
}
/**
* @return mixed
*/
public function getMourningVersion()
{
return $this->mourningVersion;
}
/**
* @param mixed $mourningVersion
*/
public function setMourningVersion($mourningVersion)
{
$this->mourningVersion = $mourningVersion;
}
/**
* @return mixed
*/
public function getDepartmentalDomain()
{
return $this->departmentalDomain;
}
/**
* @param mixed $departmentalDomain
*/
public function setDepartmentalDomain($departmentalDomain)
{
$this->departmentalDomain = $departmentalDomain;
}
/**
* @return mixed
*/
public function getHideTheEagle()
{
return $this->hideTheEagle;
}
/**
* @param mixed $hideTheEagle
*/
public function setHideTheEagle($hideTheEagle)
{
$this->hideTheEagle = $hideTheEagle;
}
/**
* @return mixed
*/
public function getHideFindUs()
{
return $this->hideFindUs;
}
/**
* @param mixed $hideFindUs
*/
public function setHideFindUs($hideFindUs)
{
$this->hideFindUs = $hideFindUs;
}
/**
* @return mixed
*/
public function getHideBip()
{
return $this->hideBip;
}
/**
* @param mixed $hideBip
*/
public function setHideBip($hideBip)
{
$this->hideBip = $hideBip;
}
/**
* @return mixed
*/
public function getHideHeader()
{
return $this->hideHeader;
}
/**
* @param mixed $hideHeader
*/
public function setHideHeader($hideHeader)
{
$this->hideHeader = $hideHeader;
}
/**
* @return mixed
*/
public function getLogo()
{
return $this->logo;
}
/**
* @param mixed $logo
*/
public function setLogo($logo)
{
$this->logo = $logo;
}
/**
* @return mixed
*/
public function getLogoDark()
{
return $this->logoDark;
}
/**
* @param mixed $logoDark
*/
public function setLogoDark($logoDark): void
{
$this->logoDark = $logoDark;
}
}