<?php
namespace Cms\ThemeBundle\Entity;
use Cms\CoreBundle\Model\EntityRestoreInterface;
use Cms\CoreBundle\Model\EntityRestoreTrait;
use Cms\TenantBundle\Entity\TenantedEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* Class ContentTemplate
* @package Cms\ThemeBundle\Entity
*
* @ORM\Entity(
* repositoryClass = "Cms\ThemeBundle\Doctrine\ContentTemplateRepository"
* )
* @ORM\Table(
* "cms__theme__content_template"
* )
*/
class ContentTemplate extends TenantedEntity implements EntityRestoreInterface
{
use ContentTemplateRestoreTrait;
use EntityRestoreTrait;
/**
* @var string
*
* @ORM\Column(
* type = "string",
* nullable = false
* )
*/
protected $name;
/**
* @var string
*
* @ORM\Column(
* type = "text",
* nullable = true
* )
*/
protected $description;
/**
* @var string
*
* @ORM\Column(
* type = "string",
* nullable = false
* )
*/
protected $package;
/**
* @param string $value
* @return $this
*/
public function setName($value)
{
$this->name = $value;
return $this;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string $value
* @return $this
*/
public function setDescription($value)
{
$this->description = $value;
return $this;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @return string
*/
public function getPackage()
{
return $this->package;
}
/**
* @param string $value
* @return $this
*/
public function setPackage($value)
{
$this->package = $value;
return $this;
}
}