src/Entity/System/ShopTopicLang.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ShopTopicLang
  6.  *
  7.  * @ORM\Table(name="ps_shop_topics_lang")
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\System\ShopTopicLangRepository")
  10.  */
  11. class ShopTopicLang
  12. {
  13.     /**
  14.      * @ORM\Id()
  15.      *
  16.      * @ORM\GeneratedValue()
  17.      *
  18.      * @ORM\Column(type="integer", name="id_shop_topic_lang")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var ShopTopic
  23.      *
  24.      * @ORM\ManyToOne (targetEntity="App\Entity\System\ShopTopic", inversedBy="translations")
  25.      *
  26.      * @ORM\JoinColumn(name="id_shop_topic", referencedColumnName="id_shop_topic", nullable=false)
  27.      */
  28.     private $shopTopic;
  29.     /**
  30.      * @var Language
  31.      *
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Language")
  33.      *
  34.      * @ORM\JoinColumn(name="id_lang", referencedColumnName="id_lang", nullable=false)
  35.      */
  36.     private $language;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(type="string", name="topic_name")
  41.      */
  42.     private $topicName;
  43.     /**
  44.      * @return mixed
  45.      */
  46.     public function getId()
  47.     {
  48.         return $this->id;
  49.     }
  50.     /**
  51.      * @param mixed $id
  52.      */
  53.     public function setId($id): void
  54.     {
  55.         $this->id $id;
  56.     }
  57.     /**
  58.      * @return ShopTopic
  59.      */
  60.     public function getShopTopic(): ShopTopic
  61.     {
  62.         return $this->shopTopic;
  63.     }
  64.     /**
  65.      * @param ShopTopic $shopTopic
  66.      */
  67.     public function setShopTopic(ShopTopic $shopTopic): void
  68.     {
  69.         $this->shopTopic $shopTopic;
  70.     }
  71.     /**
  72.      * @return Language
  73.      */
  74.     public function getLanguage(): Language
  75.     {
  76.         return $this->language;
  77.     }
  78.     /**
  79.      * @param Language $language
  80.      */
  81.     public function setLanguage(Language $language): void
  82.     {
  83.         $this->language $language;
  84.     }
  85.     /**
  86.      * @return string
  87.      */
  88.     public function getTopicName(): string
  89.     {
  90.         return $this->topicName;
  91.     }
  92.     /**
  93.      * @param string $topicName
  94.      */
  95.     public function setTopicName(string $topicName): void
  96.     {
  97.         $this->topicName $topicName;
  98.     }
  99. }