src/Entity/System/CmsLanguage.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Table(
  6.  *       name="ps_cms_lang",
  7.  *       uniqueConstraints={
  8.  *
  9.  *            @ORM\UniqueConstraint(name="uk_cms_lang", columns={"id_cms", "id_lang"}),
  10.  *            @ORM\UniqueConstraint(name="uk_cms_lang_link", columns={"id_lang", "link_rewrite"})
  11.  *       },
  12.  *       indexes={
  13.  *
  14.  *            @ORM\Index(name="link_rewrite", columns={"link_rewrite"})
  15.  *       }
  16.  * )
  17.  *
  18.  * @ORM\Entity(repositoryClass="App\Repository\System\CmsLanguageRepository")
  19.  *
  20.  * @deprecated
  21.  */
  22. class CmsLanguage
  23. {
  24.     /**
  25.      * @ORM\Id()
  26.      *
  27.      * @ORM\GeneratedValue(strategy="AUTO")
  28.      *
  29.      * @ORM\Column(type="integer", name="id")
  30.      */
  31.     private int $id;
  32.     /**
  33.      * @var Cms
  34.      *
  35.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Cms", inversedBy="translations")
  36.      *
  37.      * @ORM\JoinColumn(name="id_cms", referencedColumnName="id_cms", nullable=false)
  38.      */
  39.     private $cms;
  40.     /**
  41.      * @var Language
  42.      *
  43.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Language")
  44.      *
  45.      * @ORM\JoinColumn(name="id_lang", referencedColumnName="id_lang", nullable=false)
  46.      */
  47.     private $language;
  48.     /**
  49.      * @ORM\Column(type="string", length=128)
  50.      */
  51.     private $metaTitle;
  52.     /**
  53.      * @ORM\Column(type="string", length=255, nullable=true)
  54.      */
  55.     private $metaDescription;
  56.     /**
  57.      * @ORM\Column(type="string", length=128)
  58.      */
  59.     private $name;
  60.     /**
  61.      * @ORM\Column(type="string", length=255, nullable=true)
  62.      */
  63.     private $metaKeywords;
  64.     /**
  65.      * @ORM\Column(type="text", nullable=true)
  66.      */
  67.     private $content;
  68.     /**
  69.      * @ORM\Column(type="string", length=255)
  70.      */
  71.     private $linkRewrite;
  72.     /**
  73.      * @ORM\Column(type="string", length=255, nullable=true)
  74.      */
  75.     private $redirect;
  76.     public function getId(): int
  77.     {
  78.         return $this->id;
  79.     }
  80.     /**
  81.      * @param Cms $cms
  82.      *
  83.      * @return $this
  84.      */
  85.     public function setCms(Cms $cms): self
  86.     {
  87.         $this->cms $cms;
  88.         return $this;
  89.     }
  90.     /**
  91.      * @return Cms
  92.      */
  93.     public function getCms(): Cms
  94.     {
  95.         return $this->cms;
  96.     }
  97.     /**
  98.      * @return Language|null
  99.      */
  100.     public function getLanguage(): ?Language
  101.     {
  102.         return $this->language;
  103.     }
  104.     /**
  105.      * @param Language|null $language
  106.      *
  107.      * @return $this
  108.      */
  109.     public function setLanguage(?Language $language): self
  110.     {
  111.         $this->language $language;
  112.         return $this;
  113.     }
  114.     /**
  115.      * @return string|null
  116.      */
  117.     public function getMetaTitle(): ?string
  118.     {
  119.         return $this->metaTitle;
  120.     }
  121.     /**
  122.      * @param string $metaTitle
  123.      *
  124.      * @return $this
  125.      */
  126.     public function setMetaTitle(string $metaTitle): self
  127.     {
  128.         $this->metaTitle $metaTitle;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return string|null
  133.      */
  134.     public function getMetaDescription(): ?string
  135.     {
  136.         return $this->metaDescription;
  137.     }
  138.     /**
  139.      * @param string|null $metaDescription
  140.      *
  141.      * @return $this
  142.      */
  143.     public function setMetaDescription(?string $metaDescription): self
  144.     {
  145.         $this->metaDescription $metaDescription;
  146.         return $this;
  147.     }
  148.     /**
  149.      * @return string|null
  150.      */
  151.     public function getName(): ?string
  152.     {
  153.         return $this->name;
  154.     }
  155.     /**
  156.      * @param string $name
  157.      *
  158.      * @return $this
  159.      */
  160.     public function setName(string $name): self
  161.     {
  162.         $this->name $name;
  163.         return $this;
  164.     }
  165.     /**
  166.      * @return string|null
  167.      */
  168.     public function getMetaKeywords(): ?string
  169.     {
  170.         return $this->metaKeywords;
  171.     }
  172.     /**
  173.      * @param string|null $metaKeywords
  174.      *
  175.      * @return $this
  176.      */
  177.     public function setMetaKeywords(?string $metaKeywords): self
  178.     {
  179.         $this->metaKeywords $metaKeywords;
  180.         return $this;
  181.     }
  182.     /**
  183.      * @return string|null
  184.      */
  185.     public function getContent(): ?string
  186.     {
  187.         return $this->content;
  188.     }
  189.     /**
  190.      * @param string|null $content
  191.      *
  192.      * @return $this
  193.      */
  194.     public function setContent(?string $content): self
  195.     {
  196.         $this->content $content;
  197.         return $this;
  198.     }
  199.     /**
  200.      * @return string|null
  201.      */
  202.     public function getLinkRewrite(): ?string
  203.     {
  204.         return $this->linkRewrite;
  205.     }
  206.     /**
  207.      * @param string $linkRewrite
  208.      *
  209.      * @return $this
  210.      */
  211.     public function setLinkRewrite(string $linkRewrite): self
  212.     {
  213.         $this->linkRewrite $linkRewrite;
  214.         return $this;
  215.     }
  216.     /**
  217.      * @return string|null
  218.      */
  219.     public function getRedirect(): ?string
  220.     {
  221.         return $this->redirect;
  222.     }
  223.     /**
  224.      * @param string|null $redirect
  225.      *
  226.      * @return $this
  227.      */
  228.     public function setRedirect(?string $redirect): self
  229.     {
  230.         $this->redirect $redirect;
  231.         return $this;
  232.     }
  233. }