src/Entity/System/Cms.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Table(name="ps_cms", indexes={
  8.  *
  9.  *     @ORM\Index(name="FK_ps_cms_block", columns={"id_cms_block"})
  10.  * })
  11.  *
  12.  * @ORM\Entity(repositoryClass="App\Repository\System\CmsRepository")
  13.  *
  14.  * @deprecated
  15.  */
  16. class Cms
  17. {
  18.     public const CMS_PAYMENTS 2;
  19.     public const CMS_AFTER_SALE 5;
  20.     public const CMS_DROPSHIPPING_SHOP_ID 10;
  21.     public const CMS_WHOLESALE_PACKS 34;
  22.     public const CMS_WHOLESALER 34;
  23.     public const CMS_HELPCENTER 44;
  24.     public const CMS_MULTICHANNEL_ID 46;
  25.     public const CMS_ALIEXPRESS_ID 63;
  26.     public const ID_CMS_AMAZON 64;
  27.     public const CMS_INTEGRATIONS 65;
  28.     public const ID_CMS_SHOPIFY 66;
  29.     public const ID_CMS_WOOCOMMERCE 67;
  30.     public const ID_CMS_EBAY 68;
  31.     public const ID_CMS_CDISCOUNT 69;
  32.     public const ID_CMS_FNAC 70;
  33.     public const ID_CMS_RAKUTEN 71;
  34.     public const ID_CMS_DARTY 72;
  35.     public const ID_CMS_PRESTASHOP 73;
  36.     public const ID_CMS_EPRICE 75;
  37.     public const ID_CMS_RUE_DU_COMMERCE 76;
  38.     public const ID_CMS_CONFORAMA 77;
  39.     public const ID_CMS_CARREFOUR 78;
  40.     public const ID_CMS_MAGENTO 79;
  41.     public const ID_CMS_KAUFLAND 80;
  42.     public const ID_CMS_LEROY_MERLIN 107;
  43.     public const ID_CMS_ALLEGRO 108;
  44.     public const ID_CMS_WORTEN 111;
  45.     public const ID_CMS_WISH 113;
  46.     public const ID_CMS_CDON 114;
  47.     public const ID_CMS_WIX 115;
  48.     public const ID_CMS_ELECLERC 116;
  49.     /**
  50.      * @ORM\Id()
  51.      *
  52.      * @ORM\GeneratedValue()
  53.      *
  54.      * @ORM\Column(name="id_cms", type="integer")
  55.      */
  56.     private $id;
  57.     /**
  58.      * @ORM\Column(type="integer")
  59.      */
  60.     private $idCmsBlock;
  61.     /**
  62.      * @ORM\Column(type="integer")
  63.      */
  64.     private $position;
  65.     /**
  66.      * @ORM\Column(type="string", length=35, nullable=true)
  67.      */
  68.     private $tpl;
  69.     /**
  70.      * @ORM\Column(type="string", name="mainNavLinkActive", length=50, nullable=true)
  71.      */
  72.     private $mainNavLinkActive;
  73.     /**
  74.      * @ORM\Column(type="string", length=128, nullable=true)
  75.      */
  76.     private $facebookImg;
  77.     /**
  78.      * @ORM\Column(type="string", length=128, nullable=true)
  79.      */
  80.     private $notes;
  81.     /**
  82.      * @ORM\Column (type="boolean", options={"default": 0})
  83.      */
  84.     private bool $legacy;
  85.     /**
  86.      * @deprecated
  87.      *
  88.      * @ORM\Column (type="boolean", options={"default": 0})
  89.      */
  90.     private bool $metaFollow;
  91.     /**
  92.      * @var CmsLanguage[]|Collection
  93.      *
  94.      * @ORM\OneToMany(targetEntity="App\Entity\System\CmsLanguage", mappedBy="cms")
  95.      */
  96.     private $translations;
  97.     /**
  98.      * @ORM\Column (type="boolean", options={"default": 0})
  99.      */
  100.     private bool $active true;
  101.     public function __construct()
  102.     {
  103.         $this->translations = new ArrayCollection();
  104.     }
  105.     public function getId(): ?int
  106.     {
  107.         return $this->id;
  108.     }
  109.     public function getIdCmsBlock(): ?int
  110.     {
  111.         return $this->idCmsBlock;
  112.     }
  113.     /**
  114.      * @return $this
  115.      */
  116.     public function setIdCmsBlock(int $idCmsBlock): self
  117.     {
  118.         $this->idCmsBlock $idCmsBlock;
  119.         return $this;
  120.     }
  121.     public function getPosition(): ?int
  122.     {
  123.         return $this->position;
  124.     }
  125.     /**
  126.      * @return $this
  127.      */
  128.     public function setPosition(int $position): self
  129.     {
  130.         $this->position $position;
  131.         return $this;
  132.     }
  133.     public function getTpl(): ?string
  134.     {
  135.         return $this->tpl;
  136.     }
  137.     /**
  138.      * @return $this
  139.      */
  140.     public function setTpl(?string $tpl): self
  141.     {
  142.         $this->tpl $tpl;
  143.         return $this;
  144.     }
  145.     public function getMainNavLinkActive(): ?string
  146.     {
  147.         return $this->mainNavLinkActive;
  148.     }
  149.     /**
  150.      * @return $this
  151.      */
  152.     public function setMainNavLinkActive(?string $mainNavLinkActive): self
  153.     {
  154.         $this->mainNavLinkActive $mainNavLinkActive;
  155.         return $this;
  156.     }
  157.     public function getFacebookImg(): ?string
  158.     {
  159.         return $this->facebookImg;
  160.     }
  161.     /**
  162.      * @return $this
  163.      */
  164.     public function setFacebookImg(?string $facebookImg): self
  165.     {
  166.         $this->facebookImg $facebookImg;
  167.         return $this;
  168.     }
  169.     public function getNotes(): ?string
  170.     {
  171.         return $this->notes;
  172.     }
  173.     /**
  174.      * @return $this
  175.      */
  176.     public function setNotes(?string $notes): self
  177.     {
  178.         $this->notes $notes;
  179.         return $this;
  180.     }
  181.     /**
  182.      * @return CmsLanguage[]|Collection
  183.      */
  184.     public function getTranslations()
  185.     {
  186.         return $this->translations;
  187.     }
  188.     /**
  189.      * @param CmsLanguage[]|Collection $translations
  190.      *
  191.      * @return Cms
  192.      */
  193.     public function setTranslations($translations)
  194.     {
  195.         $this->translations $translations;
  196.         return $this;
  197.     }
  198.     public function addTranslation(CmsLanguage $translation): self
  199.     {
  200.         if (!$this->translations->contains($translation)) {
  201.             $this->translations->add($translation);
  202.         }
  203.         return $this;
  204.     }
  205.     /**
  206.      * @return mixed
  207.      */
  208.     public function getLegacy()
  209.     {
  210.         return $this->legacy;
  211.     }
  212.     /**
  213.      * @param mixed $legacy
  214.      */
  215.     public function setLegacy($legacy): void
  216.     {
  217.         $this->legacy $legacy;
  218.     }
  219.     public function isActive(): bool
  220.     {
  221.         return $this->active;
  222.     }
  223.     public function setActive(bool $active): Cms
  224.     {
  225.         $this->active $active;
  226.         return $this;
  227.     }
  228.     public function isMetaFollow(): bool
  229.     {
  230.         return $this->metaFollow;
  231.     }
  232.     public function setMetaFollow(bool $metaFollow): Cms
  233.     {
  234.         $this->metaFollow $metaFollow;
  235.         return $this;
  236.     }
  237. }