<?php
namespace Boab\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Boab\CmsBundle\Entity\ControllerRouteInterface;
/**
* PostRoute
*
* @ORM\Table(name="route_post")
* @ORM\Entity
* @ORM\Entity(repositoryClass="Boab\CmsBundle\Repository\RouteRepository")
*/
class PostRoute extends Route implements RouteContentInterface
{
/**
* @var string
*
* @ORM\Column(name="controller", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
*/
protected $controller;
/**
* @var string
*
* @ORM\Column(name="content_type", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
*/
protected $contentType;
/**
* Set controller
*
* @param string $controller
*
* @return PostRoute
*/
public function setController($controller)
{
$this->controller = $controller;
return $this;
}
/**
* Get controller
*
* @return string
*/
public function getController()
{
return $this->controller;
}
/**
* Set contentType
*
* @param string $contentType
*
* @return PostRoute
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
return $this;
}
/**
* Get contentType
*
* @return string
*/
public function getContentType():string
{
return $this->contentType;
}
/**
* Set template
*
* @param string $template
*
* @return PostRoute
*/
public function setTemplate($template)
{
$this->template = $template;
return $this;
}
/**
* Get template
*
* @return string
*/
public function getTemplate()
{
return $this->template;
}
public function getContentTypeId()
{
return $this->getContentType();
}
}