src/Entity/System/Tag.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Tag
  6.  *
  7.  * @ORM\Table(name="ps_tag")
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\System\TagRepository")
  10.  */
  11. class Tag
  12. {
  13.     public const OUTLET_TAG_ID 20;
  14.     public const TELESHOPPING_TAG_ID 28;
  15.     public const CHRISTMAS_TAG_ID 34;
  16.     public const ORIGINAL_GIFT_TAG_ID 66;
  17.     public const BLACK_FRIDAY_TAG_ID 72;
  18.     public const HOTDEAL_TAG_ID 85;
  19.     public const VALENTINES_DAY 35;
  20.     public const EURO_2024_TAG_ID 93;
  21.     public const ID_WINNING_PRODUCTS 96// TODO CAMBIAR CUANDO WINNIG PRODUCTS ESTÉ ACTIVO
  22.     public const ID_B2B_DEALS 96;
  23.     public const COVID19_TAG_ID 99;
  24.     public const RENEWED_TAG_ID 100;
  25.     public const BACK_TO_SCHOOL_TAG_ID 38;
  26.     public const TAG_BLACK_FRIDAY_TEXT 'Black Friday';
  27.     public const TAG_HOTDEALS_TEXT 'hot deals';
  28.     public const TAG_RENEWED_TEXT 'Renewed';
  29.     public const ID_TAG_ACADEMY_ECOMMERCE 10001;
  30.     public const ID_TAG_ACADEMY_MARKETPLACE 10002;
  31.     public const ID_TAG_ACADEMY_MARKETING 10003;
  32.     public const ECOMMERCE = [
  33.         'name' => 'ECOMMERCE',
  34.         'color' => '#F28800',
  35.     ];
  36.     public const MARKETPLACE = [
  37.         'name' => 'MARKETPLACE',
  38.         'color' => '#73AF00',
  39.     ];
  40.     public const MARKETING = [
  41.         'name' => 'MARKETING',
  42.         'color' => '#F6BB00',
  43.     ];
  44.     /**
  45.      * @var int
  46.      *
  47.      * @ORM\Column(name="id_tag", type="integer")
  48.      *
  49.      * @ORM\Id
  50.      */
  51.     private $id;
  52.     /**
  53.      * @ORM\Id()
  54.      *
  55.      * @var Language
  56.      *
  57.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Language")
  58.      *
  59.      * @ORM\JoinColumn(name="id_lang", referencedColumnName="id_lang")
  60.      */
  61.     private $language;
  62.     /**
  63.      * @var string|null
  64.      *
  65.      * @ORM\Column(type="string", length=255)
  66.      */
  67.     private $name;
  68.     /**
  69.      * @var string|null
  70.      *
  71.      * @ORM\Column(type="string", length=255)
  72.      */
  73.     private $linkRewrite;
  74.     /**
  75.      * @var string|null
  76.      *
  77.      * @ORM\Column(type="string", length=255)
  78.      */
  79.     private $alt;
  80.     /**
  81.      * @var string|null
  82.      *
  83.      * @ORM\Column(type="text")
  84.      */
  85.     private $description;
  86.     /**
  87.      * @var int
  88.      *
  89.      * @ORM\Column(type="text", name="Book_keeper", options={"default" : 0})
  90.      */
  91.     private $bookKeeper;
  92.     /**
  93.      * @var bool
  94.      *
  95.      * @ORM\Column(name="active", type="boolean", length=4)
  96.      */
  97.     private $active;
  98.     /**
  99.      * @var bool
  100.      *
  101.      * @ORM\Column(name="deleted", type="boolean", length=4, options={"default" : 0})
  102.      */
  103.     private $deleted;
  104.     /**
  105.      * @return mixed
  106.      */
  107.     public function getId()
  108.     {
  109.         return $this->id;
  110.     }
  111.     /**
  112.      * @param mixed $id
  113.      *
  114.      * @return Tag
  115.      */
  116.     public function setId(int $id): Tag
  117.     {
  118.         $this->id $id;
  119.         return $this;
  120.     }
  121.     /**
  122.      * @return Language
  123.      */
  124.     public function getLanguage(): Language
  125.     {
  126.         return $this->language;
  127.     }
  128.     /**
  129.      * @param Language $language
  130.      *
  131.      * @return Tag
  132.      */
  133.     public function setLanguage(Language $language): Tag
  134.     {
  135.         $this->language $language;
  136.         return $this;
  137.     }
  138.     /**
  139.      * @return string|null
  140.      */
  141.     public function getName(): ?string
  142.     {
  143.         return $this->name;
  144.     }
  145.     /**
  146.      * @param string|null $name
  147.      *
  148.      * @return Tag
  149.      */
  150.     public function setName(string $name): Tag
  151.     {
  152.         $this->name $name;
  153.         return $this;
  154.     }
  155.     /**
  156.      * @return string|null
  157.      */
  158.     public function getLinkRewrite(): ?string
  159.     {
  160.         return $this->linkRewrite;
  161.     }
  162.     /**
  163.      * @param string|null $linkRewrite
  164.      *
  165.      * @return Tag
  166.      */
  167.     public function setLinkRewrite(string $linkRewrite): Tag
  168.     {
  169.         $this->linkRewrite $linkRewrite;
  170.         return $this;
  171.     }
  172.     /**
  173.      * @return string|null
  174.      */
  175.     public function getAlt(): ?string
  176.     {
  177.         return $this->alt;
  178.     }
  179.     /**
  180.      * @param string|null $alt
  181.      *
  182.      * @return Tag
  183.      */
  184.     public function setAlt(string $alt): Tag
  185.     {
  186.         $this->alt $alt;
  187.         return $this;
  188.     }
  189.     /**
  190.      * @return string|null
  191.      */
  192.     public function getDescription(): ?string
  193.     {
  194.         return $this->description;
  195.     }
  196.     /**
  197.      * @param string|null $description
  198.      *
  199.      * @return Tag
  200.      */
  201.     public function setDescription(string $description): Tag
  202.     {
  203.         $this->description $description;
  204.         return $this;
  205.     }
  206.     /**
  207.      * @return int
  208.      */
  209.     public function getBookKeeper(): int
  210.     {
  211.         return $this->bookKeeper;
  212.     }
  213.     /**
  214.      * @param int $bookKeeper
  215.      *
  216.      * @return Tag
  217.      */
  218.     public function setBookKeeper(int $bookKeeper): Tag
  219.     {
  220.         $this->bookKeeper $bookKeeper;
  221.         return $this;
  222.     }
  223.     /**
  224.      * @return bool
  225.      */
  226.     public function isActive(): bool
  227.     {
  228.         return $this->active;
  229.     }
  230.     /**
  231.      * @param bool $active
  232.      */
  233.     public function setActive(bool $active): void
  234.     {
  235.         $this->active $active;
  236.     }
  237.     /**
  238.      * @return bool
  239.      */
  240.     public function isDeleted(): bool
  241.     {
  242.         return $this->deleted;
  243.     }
  244.     /**
  245.      * @param bool $deleted
  246.      *
  247.      * @return Tag
  248.      */
  249.     public function setDeleted(bool $deleted): Tag
  250.     {
  251.         $this->deleted $deleted;
  252.         return $this;
  253.     }
  254. }