<?php
namespace App\Entity\System;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="ps_cms", indexes={
*
* @ORM\Index(name="FK_ps_cms_block", columns={"id_cms_block"})
* })
*
* @ORM\Entity(repositoryClass="App\Repository\System\CmsRepository")
*
* @deprecated
*/
class Cms
{
public const CMS_PAYMENTS = 2;
public const CMS_AFTER_SALE = 5;
public const CMS_DROPSHIPPING_SHOP_ID = 10;
public const CMS_WHOLESALE_PACKS = 34;
public const CMS_WHOLESALER = 34;
public const CMS_HELPCENTER = 44;
public const CMS_MULTICHANNEL_ID = 46;
public const CMS_ALIEXPRESS_ID = 63;
public const ID_CMS_AMAZON = 64;
public const CMS_INTEGRATIONS = 65;
public const ID_CMS_SHOPIFY = 66;
public const ID_CMS_WOOCOMMERCE = 67;
public const ID_CMS_EBAY = 68;
public const ID_CMS_CDISCOUNT = 69;
public const ID_CMS_FNAC = 70;
public const ID_CMS_RAKUTEN = 71;
public const ID_CMS_DARTY = 72;
public const ID_CMS_PRESTASHOP = 73;
public const ID_CMS_EPRICE = 75;
public const ID_CMS_RUE_DU_COMMERCE = 76;
public const ID_CMS_CONFORAMA = 77;
public const ID_CMS_CARREFOUR = 78;
public const ID_CMS_MAGENTO = 79;
public const ID_CMS_KAUFLAND = 80;
public const ID_CMS_LEROY_MERLIN = 107;
public const ID_CMS_ALLEGRO = 108;
public const ID_CMS_WORTEN = 111;
public const ID_CMS_WISH = 113;
public const ID_CMS_CDON = 114;
public const ID_CMS_WIX = 115;
public const ID_CMS_ELECLERC = 116;
/**
* @ORM\Id()
*
* @ORM\GeneratedValue()
*
* @ORM\Column(name="id_cms", type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $idCmsBlock;
/**
* @ORM\Column(type="integer")
*/
private $position;
/**
* @ORM\Column(type="string", length=35, nullable=true)
*/
private $tpl;
/**
* @ORM\Column(type="string", name="mainNavLinkActive", length=50, nullable=true)
*/
private $mainNavLinkActive;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $facebookImg;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $notes;
/**
* @ORM\Column (type="boolean", options={"default": 0})
*/
private bool $legacy;
/**
* @deprecated
*
* @ORM\Column (type="boolean", options={"default": 0})
*/
private bool $metaFollow;
/**
* @var CmsLanguage[]|Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\System\CmsLanguage", mappedBy="cms")
*/
private $translations;
/**
* @ORM\Column (type="boolean", options={"default": 0})
*/
private bool $active = true;
public function __construct()
{
$this->translations = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getIdCmsBlock(): ?int
{
return $this->idCmsBlock;
}
/**
* @return $this
*/
public function setIdCmsBlock(int $idCmsBlock): self
{
$this->idCmsBlock = $idCmsBlock;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
/**
* @return $this
*/
public function setPosition(int $position): self
{
$this->position = $position;
return $this;
}
public function getTpl(): ?string
{
return $this->tpl;
}
/**
* @return $this
*/
public function setTpl(?string $tpl): self
{
$this->tpl = $tpl;
return $this;
}
public function getMainNavLinkActive(): ?string
{
return $this->mainNavLinkActive;
}
/**
* @return $this
*/
public function setMainNavLinkActive(?string $mainNavLinkActive): self
{
$this->mainNavLinkActive = $mainNavLinkActive;
return $this;
}
public function getFacebookImg(): ?string
{
return $this->facebookImg;
}
/**
* @return $this
*/
public function setFacebookImg(?string $facebookImg): self
{
$this->facebookImg = $facebookImg;
return $this;
}
public function getNotes(): ?string
{
return $this->notes;
}
/**
* @return $this
*/
public function setNotes(?string $notes): self
{
$this->notes = $notes;
return $this;
}
/**
* @return CmsLanguage[]|Collection
*/
public function getTranslations()
{
return $this->translations;
}
/**
* @param CmsLanguage[]|Collection $translations
*
* @return Cms
*/
public function setTranslations($translations)
{
$this->translations = $translations;
return $this;
}
public function addTranslation(CmsLanguage $translation): self
{
if (!$this->translations->contains($translation)) {
$this->translations->add($translation);
}
return $this;
}
/**
* @return mixed
*/
public function getLegacy()
{
return $this->legacy;
}
/**
* @param mixed $legacy
*/
public function setLegacy($legacy): void
{
$this->legacy = $legacy;
}
public function isActive(): bool
{
return $this->active;
}
public function setActive(bool $active): Cms
{
$this->active = $active;
return $this;
}
public function isMetaFollow(): bool
{
return $this->metaFollow;
}
public function setMetaFollow(bool $metaFollow): Cms
{
$this->metaFollow = $metaFollow;
return $this;
}
}