src/Cms/ThemeBundle/Entity/ContentTemplate.php line 21

Open in your IDE?
  1. <?php
  2. namespace Cms\ThemeBundle\Entity;
  3. use Cms\CoreBundle\Model\EntityRestoreInterface;
  4. use Cms\CoreBundle\Model\EntityRestoreTrait;
  5. use Cms\TenantBundle\Entity\TenantedEntity;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * Class ContentTemplate
  9.  * @package Cms\ThemeBundle\Entity
  10.  *
  11.  * @ORM\Entity(
  12.  *  repositoryClass = "Cms\ThemeBundle\Doctrine\ContentTemplateRepository"
  13.  * )
  14.  * @ORM\Table(
  15.  *  "cms__theme__content_template"
  16.  * )
  17.  */
  18. class ContentTemplate extends TenantedEntity implements EntityRestoreInterface
  19. {
  20.     use ContentTemplateRestoreTrait;
  21.     use EntityRestoreTrait;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(
  26.      *     type = "string",
  27.      *     nullable = false
  28.      * )
  29.      */
  30.     protected $name;
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(
  35.      *     type = "text",
  36.      *     nullable = true
  37.      * )
  38.      */
  39.     protected $description;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(
  44.      *     type = "string",
  45.      *     nullable = false
  46.      * )
  47.      */
  48.     protected $package;
  49.     /**
  50.      * @param string $value
  51.      * @return $this
  52.      */
  53.     public function setName($value)
  54.     {
  55.         $this->name $value;
  56.         return $this;
  57.     }
  58.     /**
  59.      * @return string
  60.      */
  61.     public function getName()
  62.     {
  63.         return $this->name;
  64.     }
  65.     /**
  66.      * @param string $value
  67.      * @return $this
  68.      */
  69.     public function setDescription($value)
  70.     {
  71.         $this->description $value;
  72.         return $this;
  73.     }
  74.     /**
  75.      * @return string
  76.      */
  77.     public function getDescription()
  78.     {
  79.         return $this->description;
  80.     }
  81.     /**
  82.      * @return string
  83.      */
  84.     public function getPackage()
  85.     {
  86.         return $this->package;
  87.     }
  88.     /**
  89.      * @param string $value
  90.      * @return $this
  91.      */
  92.     public function setPackage($value)
  93.     {
  94.         $this->package $value;
  95.         return $this;
  96.     }
  97. }