<?php
namespace Boab\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Boab\CmsBundle\Entity\ControllerRouteInterface;
/**
* ListRoute
*
* @ORM\Table(name="route_list")
* @ORM\Entity
* @ORM\Entity(repositoryClass="Boab\CmsBundle\Repository\RouteRepository")
*/
class ListRoute extends Route implements RouteObjectInterface, RouteControllerInterface
{
/**
* @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 ControllerRoute
*/
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 ControllerRoute
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
return $this;
}
/**
* Get contentType
*
* @return string
*/
public function getContentType():string
{
return $this->contentType;
}
public function getContentTypeId()
{
return $this->getContentType();
}
}