src/AtechNet/CoreBundle/Entity/PageMeta.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\AtechNet\CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping\Column;
  4. use Doctrine\ORM\Mapping\Entity;
  5. use Doctrine\ORM\Mapping\JoinColumn;
  6. use Doctrine\ORM\Mapping\ManyToOne;
  7. use Doctrine\ORM\Mapping\Table as Table;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. /**
  10.  * PageMeta
  11.  *
  12.  * @Table(name="pages_meta")
  13.  * @Entity()
  14.  */
  15. class PageMeta extends AbstractSignedEntity
  16. {
  17.     /**
  18.      * @var Language
  19.      *
  20.      * @Assert\NotNull
  21.      *
  22.      * @ManyToOne(targetEntity="Language")
  23.      * @JoinColumn(name="language_id", referencedColumnName="id")
  24.      */
  25.     private $language;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @Column(name="title", type="string", length=256)
  30.      */
  31.     private $title;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @Column(name="link", type="string", length=512)
  36.      */
  37.     private $link;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @Column(name="content", type="text")
  42.      */
  43.     private $content;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @Column(name="short_desc", type="text")
  48.      */
  49.     private $shortDesc;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @Column(name="seo_title", type="string", length=256)
  54.      */
  55.     private $seoTitle;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @Column(name="seo_desc", type="string", length=256)
  60.      */
  61.     private $seoDesc;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @Column(name="extra_seo_desc", type="text", nullable=true)
  66.      */
  67.     private $extraSeoDesc;
  68.     /**
  69.      * @var CategoryPage
  70.      *
  71.      * @ManyToOne(targetEntity="CategoryPage", inversedBy="metas")
  72.      * @JoinColumn(name="category_page_id", referencedColumnName="id", nullable=true)
  73.      */
  74.     private $categoryPage;
  75.     /**
  76.      * @var BlogPage
  77.      *
  78.      * @ManyToOne(targetEntity="BlogPage", inversedBy="metas")
  79.      * @JoinColumn(name="blog_category_id", referencedColumnName="id", nullable=true)
  80.      */
  81.     private $blogPage;
  82.     /**
  83.      * @var StaticPage
  84.      *
  85.      * @ManyToOne(targetEntity="StaticPage", inversedBy="metas")
  86.      * @JoinColumn(name="static_page_id", referencedColumnName="id", nullable=true)
  87.      */
  88.     private $staticPage;
  89.     /**
  90.      * @return Language
  91.      */
  92.     public function getLanguage()
  93.     {
  94.         return $this->language;
  95.     }
  96.     /**
  97.      * @param Language $language
  98.      */
  99.     public function setLanguage($language)
  100.     {
  101.         $this->language = $language;
  102.     }
  103.     /**
  104.      * @return string
  105.      */
  106.     public function getTitle()
  107.     {
  108.         return $this->title;
  109.     }
  110.     /**
  111.      * @param string $title
  112.      */
  113.     public function setTitle($title)
  114.     {
  115.         $this->title = $title;
  116.     }
  117.     /**
  118.      * @return string
  119.      */
  120.     public function getLink()
  121.     {
  122.         return $this->link;
  123.     }
  124.     /**
  125.      * @param string $link
  126.      */
  127.     public function setLink($link)
  128.     {
  129.         $this->link = $link;
  130.     }
  131.     /**
  132.      * @return string
  133.      */
  134.     public function getContent()
  135.     {
  136.         return $this->content;
  137.     }
  138.     /**
  139.      * @param string $content
  140.      */
  141.     public function setContent($content)
  142.     {
  143.         $this->content = $content;
  144.     }
  145.     /**
  146.      * @return CategoryPage
  147.      */
  148.     public function getCategoryPage()
  149.     {
  150.         return $this->categoryPage;
  151.     }
  152.     /**
  153.      * @param CategoryPage $categoryPage
  154.      */
  155.     public function setCategoryPage($categoryPage)
  156.     {
  157.         $this->categoryPage = $categoryPage;
  158.     }
  159.     /**
  160.      * @return BlogPage
  161.      */
  162.     public function getBlogPage()
  163.     {
  164.         return $this->blogPage;
  165.     }
  166.     /**
  167.      * @param BlogPage $blogPage
  168.      */
  169.     public function setBlogPage($blogPage)
  170.     {
  171.         $this->blogPage = $blogPage;
  172.     }
  173.     /**
  174.      * @return StaticPage
  175.      */
  176.     public function getStaticPage()
  177.     {
  178.         return $this->staticPage;
  179.     }
  180.     /**
  181.      * @param StaticPage $staticPage
  182.      */
  183.     public function setStaticPage($staticPage)
  184.     {
  185.         $this->staticPage = $staticPage;
  186.     }
  187.     /**
  188.      * @return string
  189.      */
  190.     public function getShortDesc()
  191.     {
  192.         return $this->shortDesc;
  193.     }
  194.     /**
  195.      * @param string $shortDesc
  196.      */
  197.     public function setShortDesc($shortDesc)
  198.     {
  199.         $this->shortDesc = $shortDesc;
  200.     }
  201.     /**
  202.      * @return string
  203.      */
  204.     public function getSeoTitle()
  205.     {
  206.         return $this->seoTitle;
  207.     }
  208.     /**
  209.      * @param string $seoTitle
  210.      */
  211.     public function setSeoTitle($seoTitle)
  212.     {
  213.         $this->seoTitle = $seoTitle;
  214.     }
  215.     /**
  216.      * @return string
  217.      */
  218.     public function getSeoDesc()
  219.     {
  220.         return $this->seoDesc;
  221.     }
  222.     /**
  223.      * @param string $seoDesc
  224.      */
  225.     public function setSeoDesc($seoDesc)
  226.     {
  227.         $this->seoDesc = $seoDesc;
  228.     }
  229.     /**
  230.      * @return string
  231.      */
  232.     public function getExtraSeoDesc()
  233.     {
  234.         return $this->extraSeoDesc;
  235.     }
  236.     /**
  237.      * @param string $extraSeoDesc
  238.      */
  239.     public function setExtraSeoDesc($extraSeoDesc)
  240.     {
  241.         $this->extraSeoDesc = $extraSeoDesc;
  242.     }
  243. }