src/CoreBundle/Entity/Vehicles/VehicleContent.php line 10

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity\Vehicles;
  3. use Application\Sonata\MediaBundle\Entity\Media;
  4. /**
  5.  * VehicleContent
  6.  */
  7. class VehicleContent
  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 string
  27.      */
  28.     private $main_characteristics;
  29.     /**
  30.      * @var string
  31.      */
  32.     private $interesting;
  33.     /**
  34.      * @var string
  35.      */
  36.     private $slogan;
  37.     /**
  38.      * @var string
  39.      */
  40.     private $language;
  41.     /**
  42.      * @var string
  43.      */
  44.     private $seo_title;
  45.     /**
  46.      * @var string
  47.      */
  48.     private $seo_description;
  49.     /**
  50.      * @var string
  51.      */
  52.     private $seo_keywords;
  53.     /**
  54.      * @var Vehicle
  55.      */
  56.     private $vehicle;
  57.     /**
  58.      * @var Media
  59.      */
  60.     private $interesting_image;
  61.     /**
  62.      * Get id
  63.      *
  64.      * @return integer
  65.      */
  66.     public function getId()
  67.     {
  68.         return $this->id;
  69.     }
  70.     /**
  71.      * Set title
  72.      *
  73.      * @param string $title
  74.      *
  75.      * @return VehicleContent
  76.      */
  77.     public function setTitle($title)
  78.     {
  79.         $this->title $title;
  80.         return $this;
  81.     }
  82.     /**
  83.      * Get title
  84.      *
  85.      * @return string
  86.      */
  87.     public function getTitle()
  88.     {
  89.         return $this->title;
  90.     }
  91.     /**
  92.      * Set description
  93.      *
  94.      * @param string $description
  95.      *
  96.      * @return VehicleContent
  97.      */
  98.     public function setDescription($description)
  99.     {
  100.         $this->description $description;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Get description
  105.      *
  106.      * @return string
  107.      */
  108.     public function getDescription()
  109.     {
  110.         return $this->description;
  111.     }
  112.     /**
  113.      * Set content
  114.      *
  115.      * @param string $content
  116.      *
  117.      * @return VehicleContent
  118.      */
  119.     public function setContent($content)
  120.     {
  121.         $this->content $content;
  122.         return $this;
  123.     }
  124.     /**
  125.      * Get content
  126.      *
  127.      * @return string
  128.      */
  129.     public function getContent()
  130.     {
  131.         return $this->content;
  132.     }
  133.     /**
  134.      * Set slogan
  135.      *
  136.      * @param string $slogan
  137.      *
  138.      * @return VehicleContent
  139.      */
  140.     public function setSlogan($slogan)
  141.     {
  142.         $this->slogan $slogan;
  143.         return $this;
  144.     }
  145.     /**
  146.      * Get slogan
  147.      *
  148.      * @return string
  149.      */
  150.     public function getSlogan()
  151.     {
  152.         return $this->slogan;
  153.     }
  154.     /**
  155.      * Set language
  156.      *
  157.      * @param string $language
  158.      *
  159.      * @return VehicleContent
  160.      */
  161.     public function setLanguage($language)
  162.     {
  163.         $this->language $language;
  164.         return $this;
  165.     }
  166.     /**
  167.      * Get language
  168.      *
  169.      * @return string
  170.      */
  171.     public function getLanguage()
  172.     {
  173.         return $this->language;
  174.     }
  175.     /**
  176.      * Set seoTitle
  177.      *
  178.      * @param string $seoTitle
  179.      *
  180.      * @return VehicleContent
  181.      */
  182.     public function setSeoTitle($seoTitle)
  183.     {
  184.         $this->seo_title $seoTitle;
  185.         return $this;
  186.     }
  187.     /**
  188.      * Get seoTitle
  189.      *
  190.      * @return string
  191.      */
  192.     public function getSeoTitle()
  193.     {
  194.         return $this->seo_title;
  195.     }
  196.     /**
  197.      * Set seoDescription
  198.      *
  199.      * @param string $seoDescription
  200.      *
  201.      * @return VehicleContent
  202.      */
  203.     public function setSeoDescription($seoDescription)
  204.     {
  205.         $this->seo_description $seoDescription;
  206.         return $this;
  207.     }
  208.     /**
  209.      * Get seoDescription
  210.      *
  211.      * @return string
  212.      */
  213.     public function getSeoDescription()
  214.     {
  215.         return $this->seo_description;
  216.     }
  217.     /**
  218.      * Set seoKeywords
  219.      *
  220.      * @param string $seoKeywords
  221.      *
  222.      * @return VehicleContent
  223.      */
  224.     public function setSeoKeywords($seoKeywords)
  225.     {
  226.         $this->seo_keywords $seoKeywords;
  227.         return $this;
  228.     }
  229.     /**
  230.      * Get seoKeywords
  231.      *
  232.      * @return string
  233.      */
  234.     public function getSeoKeywords()
  235.     {
  236.         return $this->seo_keywords;
  237.     }
  238.     /**
  239.      * Set vehicle
  240.      *
  241.      * @param Vehicle $vehicle
  242.      *
  243.      * @return VehicleContent
  244.      */
  245.     public function setVehicle(Vehicle $vehicle null)
  246.     {
  247.         $this->vehicle $vehicle;
  248.         return $this;
  249.     }
  250.     /**
  251.      * Get vehicle
  252.      *
  253.      * @return Vehicle
  254.      */
  255.     public function getVehicle()
  256.     {
  257.         return $this->vehicle;
  258.     }
  259.     /**
  260.      * Set mainCharacteristic
  261.      *
  262.      * @param string $main_characteristics
  263.      *
  264.      * @return VehicleMainCharacteristic
  265.      */
  266.     public function setMainCharacteristics($main_characteristics)
  267.     {
  268.         if (is_array($main_characteristics)) {
  269.             $this->main_characteristics json_encode($main_characteristics);
  270.         }
  271.         return $this;
  272.     }
  273.     /**
  274.      * Get mainCharacteristic
  275.      *
  276.      * @return string
  277.      */
  278.     public function getMainCharacteristics()
  279.     {
  280.         return json_decode($this->main_characteristicstrue);
  281.     }
  282.     /**
  283.      * Set interesting
  284.      *
  285.      * @param string $interesting
  286.      *
  287.      * @return VehicleInteresting
  288.      */
  289.     public function setInteresting($interesting)
  290.     {
  291.         if (is_array($interesting)) {
  292.             $this->interesting json_encode($interesting);
  293.         }
  294.         return $this;
  295.     }
  296.     /**
  297.      * Get mainInteresting
  298.      *
  299.      * @return string
  300.      */
  301.     public function getInteresting()
  302.     {
  303.         return json_decode($this->interestingtrue);
  304.     }
  305.     /**
  306.      * Set interesting_image
  307.      *
  308.      * @param Media $interesting_image
  309.      *
  310.      */
  311.     public function setInterestingImage(Media $interesting_image null)
  312.     {
  313.         $this->interesting_image $interesting_image;
  314.         return $this;
  315.     }
  316.     /**
  317.      * Get interesting_image
  318.      *
  319.      * @return Media
  320.      */
  321.     public function getInterestingImage()
  322.     {
  323.         return $this->interesting_image;
  324.     }
  325. }