vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Entity/CollectionMeta.php line 17

  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\MediaBundle\Entity;
  11. /**
  12.  * CollectionMeta.
  13.  */
  14. class CollectionMeta
  15. {
  16.     /**
  17.      * @var string
  18.      */
  19.     private $title;
  20.     /**
  21.      * @var string|null
  22.      */
  23.     private $description;
  24.     /**
  25.      * @var string
  26.      */
  27.     private $locale;
  28.     /**
  29.      * @var int
  30.      */
  31.     private $id;
  32.     /**
  33.      * @var CollectionInterface
  34.      */
  35.     private $collection;
  36.     /**
  37.      * Get id.
  38.      *
  39.      * @return int
  40.      */
  41.     public function getId()
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * Set title.
  47.      *
  48.      * @param string $title
  49.      *
  50.      * @return CollectionMeta
  51.      */
  52.     public function setTitle($title)
  53.     {
  54.         $this->title $title;
  55.         return $this;
  56.     }
  57.     /**
  58.      * Get title.
  59.      *
  60.      * @return string
  61.      */
  62.     public function getTitle()
  63.     {
  64.         return $this->title;
  65.     }
  66.     /**
  67.      * Set description.
  68.      *
  69.      * @param string|null $description
  70.      *
  71.      * @return CollectionMeta
  72.      */
  73.     public function setDescription($description)
  74.     {
  75.         $this->description $description;
  76.         return $this;
  77.     }
  78.     /**
  79.      * Get description.
  80.      *
  81.      * @return string|null
  82.      */
  83.     public function getDescription()
  84.     {
  85.         return $this->description;
  86.     }
  87.     /**
  88.      * Set locale.
  89.      *
  90.      * @param string $locale
  91.      *
  92.      * @return CollectionMeta
  93.      */
  94.     public function setLocale($locale)
  95.     {
  96.         $this->locale $locale;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get locale.
  101.      *
  102.      * @return string
  103.      */
  104.     public function getLocale()
  105.     {
  106.         return $this->locale;
  107.     }
  108.     /**
  109.      * Set collection.
  110.      *
  111.      * @return CollectionMeta
  112.      */
  113.     public function setCollection(CollectionInterface $collection)
  114.     {
  115.         $this->collection $collection;
  116.         return $this;
  117.     }
  118.     /**
  119.      * Get collection.
  120.      *
  121.      * @return CollectionInterface
  122.      */
  123.     public function getCollection()
  124.     {
  125.         return $this->collection;
  126.     }
  127. }