src/CoreBundle/Entity/PostContent.php line 10

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Application\Sonata\MediaBundle\Entity\Media;
  4. /**
  5.  * PostContent
  6.  */
  7. class PostContent
  8. {
  9.     /**
  10.      * @var integer
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $title;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $description;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $content;
  25.     /**
  26.      * @var Post
  27.      */
  28.     private $post;
  29.     /**
  30.      * @var string
  31.      */
  32.     private $language;
  33.     /**
  34.      * Get id
  35.      *
  36.      * @return integer
  37.      */
  38.     public function getId()
  39.     {
  40.         return $this->id;
  41.     }
  42.     /**
  43.      * Set title
  44.      *
  45.      * @param string $title
  46.      *
  47.      * @return PostContent
  48.      */
  49.     public function setTitle($title)
  50.     {
  51.         $this->title $title;
  52.         return $this;
  53.     }
  54.     /**
  55.      * Get title
  56.      *
  57.      * @return string
  58.      */
  59.     public function getTitle()
  60.     {
  61.         return $this->title;
  62.     }
  63.     /**
  64.      * Set description
  65.      *
  66.      * @param string $description
  67.      *
  68.      * @return PostContent
  69.      */
  70.     public function setDescription($description)
  71.     {
  72.         $this->description $description;
  73.         return $this;
  74.     }
  75.     /**
  76.      * Get description
  77.      *
  78.      * @return string
  79.      */
  80.     public function getDescription()
  81.     {
  82.         return $this->description;
  83.     }
  84.     /**
  85.      * Set content
  86.      *
  87.      * @param string $content
  88.      *
  89.      * @return PostContent
  90.      */
  91.     public function setContent($content)
  92.     {
  93.         $this->content $content;
  94.         return $this;
  95.     }
  96.     /**
  97.      * Get content
  98.      *
  99.      * @return string
  100.      */
  101.     public function getContent()
  102.     {
  103.         return $this->content;
  104.     }
  105.     /**
  106.      * Set post
  107.      *
  108.      * @param Post $post
  109.      *
  110.      * @return PostContent
  111.      */
  112.     public function setPost(Post $post null)
  113.     {
  114.         $this->post $post;
  115.         return $this;
  116.     }
  117.     /**
  118.      * Get post
  119.      *
  120.      * @return Post
  121.      */
  122.     public function getPost()
  123.     {
  124.         return $this->post;
  125.     }
  126.     public function __toString()
  127.     {
  128.         return (string) $this->getTitle();
  129.     }
  130.     /**
  131.      * @var Media
  132.      */
  133.     private $image;
  134.     /**
  135.      * Set image
  136.      *
  137.      * @param Media $image
  138.      *
  139.      * @return PostContent
  140.      */
  141.     public function setImage(Media $image null)
  142.     {
  143.         $this->image $image;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get image
  148.      *
  149.      * @return Media
  150.      */
  151.     public function getImage()
  152.     {
  153.         return $this->image;
  154.     }
  155.     /**
  156.      * Set language
  157.      *
  158.      * @param string $language
  159.      *
  160.      * @return PostContent
  161.      */
  162.     public function setLanguage($language)
  163.     {
  164.         $this->language $language;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get language
  169.      *
  170.      * @return string
  171.      */
  172.     public function getLanguage()
  173.     {
  174.         return $this->language;
  175.     }
  176.     /**
  177.      * @var string
  178.      */
  179.     private $seo_title;
  180.     /**
  181.      * @var string
  182.      */
  183.     private $seo_description;
  184.     /**
  185.      * @var string
  186.      */
  187.     private $seo_keywords;
  188.     /**
  189.      * Set seoTitle
  190.      *
  191.      * @param string $seoTitle
  192.      *
  193.      * @return PostContent
  194.      */
  195.     public function setSeoTitle($seoTitle)
  196.     {
  197.         $this->seo_title $seoTitle;
  198.         return $this;
  199.     }
  200.     /**
  201.      * Get seoTitle
  202.      *
  203.      * @return string
  204.      */
  205.     public function getSeoTitle()
  206.     {
  207.         return $this->seo_title;
  208.     }
  209.     /**
  210.      * Set seoDescription
  211.      *
  212.      * @param string $seoDescription
  213.      *
  214.      * @return PostContent
  215.      */
  216.     public function setSeoDescription($seoDescription)
  217.     {
  218.         $this->seo_description $seoDescription;
  219.         return $this;
  220.     }
  221.     /**
  222.      * Get seoDescription
  223.      *
  224.      * @return string
  225.      */
  226.     public function getSeoDescription()
  227.     {
  228.         return $this->seo_description;
  229.     }
  230.     /**
  231.      * Set seoKeywords
  232.      *
  233.      * @param string $seoKeywords
  234.      *
  235.      * @return PostContent
  236.      */
  237.     public function setSeoKeywords($seoKeywords)
  238.     {
  239.         $this->seo_keywords $seoKeywords;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get seoKeywords
  244.      *
  245.      * @return string
  246.      */
  247.     public function getSeoKeywords()
  248.     {
  249.         return $this->seo_keywords;
  250.     }
  251.     /**
  252.      * @var string|null
  253.      */
  254.     private $button_text;
  255.     /**
  256.      * Set buttonText.
  257.      *
  258.      * @param string|null $buttonText
  259.      *
  260.      * @return PostContent
  261.      */
  262.     public function setButtonText($buttonText null)
  263.     {
  264.         $this->button_text $buttonText;
  265.         return $this;
  266.     }
  267.     /**
  268.      * Get buttonText.
  269.      *
  270.      * @return string|null
  271.      */
  272.     public function getButtonText()
  273.     {
  274.         return $this->button_text;
  275.     }
  276. }