<?php
namespace Cms\FileBundle\Entity\Nodes;
use Cms\FileBundle\Entity\Node;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints as DoctrineAssert;
/**
* Class Folder
* @package Cms\FileBundle\Entity\Nodes
*
* @ORM\Entity(repositoryClass = "Cms\FileBundle\Doctrine\Nodes\FolderRepository")
*
* @DoctrineAssert\UniqueEntity(
* fields = {
* "name",
* "parent",
* "container"
* },
* ignoreNull = false
* )
*/
class Folder extends Node
{
const DISCR = 'folder';
const TYPE = 'Folder';
/**
* @var string
*
* @ORM\Column(
* type = "text",
* nullable = true
* )
*/
protected $description;
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string $value
* @return $this
*/
public function setDescription($value)
{
$this->description = $value;
return $this;
}
}