lib/boab/cms-bundle/src/Entity/PostRoute.php line 15

Open in your IDE?
  1. <?php
  2. namespace Boab\CmsBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Boab\CmsBundle\Entity\ControllerRouteInterface;
  5. /**
  6.  * PostRoute
  7.  * 
  8.  * @ORM\Table(name="route_post")  
  9.  * @ORM\Entity
  10.  * @ORM\Entity(repositoryClass="Boab\CmsBundle\Repository\RouteRepository")
  11.  */
  12. class PostRoute extends Route implements RouteContentInterface
  13. {
  14.     /**
  15.      * @var string
  16.      *
  17.      * @ORM\Column(name="controller", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  18.      */
  19.     protected $controller;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="content_type", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  24.      */
  25.     protected $contentType;
  26.     /**
  27.      * Set controller
  28.      *
  29.      * @param string $controller
  30.      *
  31.      * @return PostRoute
  32.      */
  33.     public function setController($controller)
  34.     {
  35.         $this->controller $controller;
  36.         return $this;
  37.     }
  38.     /**
  39.      * Get controller
  40.      *
  41.      * @return string
  42.      */
  43.     public function getController()
  44.     {
  45.         return $this->controller;
  46.     }
  47.     /**
  48.      * Set contentType
  49.      *
  50.      * @param string $contentType
  51.      *
  52.      * @return PostRoute
  53.      */
  54.     public function setContentType($contentType)
  55.     {
  56.         $this->contentType $contentType;
  57.         return $this;
  58.     }
  59.     /**
  60.      * Get contentType
  61.      *
  62.      * @return string
  63.      */
  64.     public function getContentType():string
  65.     {
  66.         return $this->contentType;
  67.     }
  68.     /**
  69.      * Set template
  70.      *
  71.      * @param string $template
  72.      *
  73.      * @return PostRoute
  74.      */
  75.     public function setTemplate($template)
  76.     {
  77.         $this->template $template;
  78.         return $this;
  79.     }
  80.     /**
  81.      * Get template
  82.      *
  83.      * @return string
  84.      */
  85.     public function getTemplate()
  86.     {
  87.         return $this->template;
  88.     }
  89.     public function getContentTypeId()
  90.     {
  91.         return $this->getContentType();
  92.     }
  93. }