src/Entity/System/ShopTopic.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * ShopTopic
  7.  *
  8.  * @ORM\Table(name="ps_shop_topics")
  9.  *
  10.  * @ORM\Entity(repositoryClass="App\Repository\System\ShopTopicRepository")
  11.  */
  12. class ShopTopic
  13. {
  14.     public const COMPLETE_CATALOGUE_ID 0;
  15.     public const PERFUME_CATALOGUE_ID 1;
  16.     public const ELECTRONICS_CATALOGUE_ID 2;
  17.     public const SEXSHOP_CATALOGUE_ID 6;
  18.     public const WATCHES_CATALOGUE_ID 8;
  19.     public const KITCHEN_CATALOGUE_ID 9;
  20.     public const COSTUMES_CATALOGUE_ID 10;
  21.     public const COMPUTERS_CATALOGUE_ID 11;
  22.     public const LICENSES_CATALOGUE_ID 16;
  23.     public const PETS_CATALOGUE_ID 18;
  24.     public const HOME_DECOR_CATALOGUE_ID 19;
  25.     public const CATALOG_IDS = [0126891011161819];
  26.     /**
  27.      * @ORM\Id()
  28.      *
  29.      * @ORM\GeneratedValue()
  30.      *
  31.      * @ORM\Column(type="integer", name="id_shop_topic")
  32.      */
  33.     private $id;
  34.     /**
  35.      * @var int
  36.      *
  37.      * @ORM\Column(name="active", type="boolean")
  38.      */
  39.     private $active;
  40.     /**
  41.      * @var ShopTopicLang[]|ArrayCollection
  42.      *
  43.      * @ORM\OneToMany(targetEntity="ShopTopicLang", mappedBy="shopTopic" )
  44.      */
  45.     private $translations;
  46.     /**
  47.      * @return mixed
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * @param mixed $id
  55.      */
  56.     public function setId($id): void
  57.     {
  58.         $this->id $id;
  59.     }
  60.     /**
  61.      * @return int
  62.      */
  63.     public function getActive(): int
  64.     {
  65.         return $this->active;
  66.     }
  67.     /**
  68.      * @param int $active
  69.      */
  70.     public function setActive(int $active): void
  71.     {
  72.         $this->active $active;
  73.     }
  74.     /**
  75.      * @return ShopTopicLang[]|ArrayCollection
  76.      */
  77.     public function getTranslations()
  78.     {
  79.         return $this->translations;
  80.     }
  81.     /**
  82.      * @param ShopTopicLang[]|ArrayCollection $translations
  83.      */
  84.     public function setTranslations($translations): void
  85.     {
  86.         $this->translations $translations;
  87.     }
  88. }