<?php
namespace Cms\ContainerBundle\Entity\Containers;
use Cms\ContainerBundle\Entity\Container;
use Doctrine\ORM\Mapping as ORM;
/**
* Class GenericContainer
* @package Cms\ContainerBundle\Entity\Containers
*
* @ORM\Entity(
* repositoryClass = "Cms\ContainerBundle\Doctrine\Containers\GenericContainerRepository"
* )
*/
class GenericContainer extends Container
{
const DISCR = 'generic';
const ROUTING_SLUG = 'sites';
/**
* @var bool
*
* @ORM\Column(
* type = "boolean",
* nullable = false,
* options = {
* "default" = false
* }
* )
*/
protected $preferred = false;
/**
* @return bool
*/
public function isPreferred()
{
return ($this->preferred === true);
}
/**
* @param bool $value
* @return $this
*/
public function setPreferred($value)
{
$this->preferred = ($value === true);
return $this;
}
}