<?php
namespace App\Entity\System;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* ShopTopic
*
* @ORM\Table(name="ps_shop_topics")
*
* @ORM\Entity(repositoryClass="App\Repository\System\ShopTopicRepository")
*/
class ShopTopic
{
public const COMPLETE_CATALOGUE_ID = 0;
public const PERFUME_CATALOGUE_ID = 1;
public const ELECTRONICS_CATALOGUE_ID = 2;
public const SEXSHOP_CATALOGUE_ID = 6;
public const WATCHES_CATALOGUE_ID = 8;
public const KITCHEN_CATALOGUE_ID = 9;
public const COSTUMES_CATALOGUE_ID = 10;
public const COMPUTERS_CATALOGUE_ID = 11;
public const LICENSES_CATALOGUE_ID = 16;
public const PETS_CATALOGUE_ID = 18;
public const HOME_DECOR_CATALOGUE_ID = 19;
public const CATALOG_IDS = [0, 1, 2, 6, 8, 9, 10, 11, 16, 18, 19];
/**
* @ORM\Id()
*
* @ORM\GeneratedValue()
*
* @ORM\Column(type="integer", name="id_shop_topic")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="active", type="boolean")
*/
private $active;
/**
* @var ShopTopicLang[]|ArrayCollection
*
* @ORM\OneToMany(targetEntity="ShopTopicLang", mappedBy="shopTopic" )
*/
private $translations;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return int
*/
public function getActive(): int
{
return $this->active;
}
/**
* @param int $active
*/
public function setActive(int $active): void
{
$this->active = $active;
}
/**
* @return ShopTopicLang[]|ArrayCollection
*/
public function getTranslations()
{
return $this->translations;
}
/**
* @param ShopTopicLang[]|ArrayCollection $translations
*/
public function setTranslations($translations): void
{
$this->translations = $translations;
}
}