src/Cms/FileBundle/Entity/Nodes/Folder.php line 24

Open in your IDE?
  1. <?php
  2. namespace Cms\FileBundle\Entity\Nodes;
  3. use Cms\FileBundle\Entity\Node;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints as DoctrineAssert;
  6. /**
  7.  * Class Folder
  8.  * @package Cms\FileBundle\Entity\Nodes
  9.  *
  10.  * @ORM\Entity(repositoryClass = "Cms\FileBundle\Doctrine\Nodes\FolderRepository")
  11.  *
  12.  * @DoctrineAssert\UniqueEntity(
  13.  *     fields = {
  14.  *         "name",
  15.  *         "parent",
  16.  *         "container"
  17.  *     },
  18.  *     ignoreNull = false
  19.  * )
  20.  */
  21. class Folder extends Node
  22. {
  23.     const DISCR 'folder';
  24.     const TYPE 'Folder';
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(
  29.      *  type = "text",
  30.      *  nullable = true
  31.      * )
  32.      */
  33.     protected $description;
  34.     /**
  35.      * @return string
  36.      */
  37.     public function getDescription()
  38.     {
  39.         return $this->description;
  40.     }
  41.     /**
  42.      * @param string $value
  43.      * @return $this
  44.      */
  45.     public function setDescription($value)
  46.     {
  47.         $this->description $value;
  48.         return $this;
  49.     }
  50. }