vendor/pimcore/pimcore/models/DataObject/Data/Video.php line 25

Open in your IDE?
  1. <?php
  2. /**
  3.  * Pimcore
  4.  *
  5.  * This source file is available under two different licenses:
  6.  * - GNU General Public License version 3 (GPLv3)
  7.  * - Pimcore Commercial License (PCL)
  8.  * Full copyright and license information is available in
  9.  * LICENSE.md which is distributed with this source code.
  10.  *
  11.  *  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  12.  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  13.  */
  14. namespace Pimcore\Model\DataObject\Data;
  15. use Pimcore\Model\Asset;
  16. use Pimcore\Model\DataObject\OwnerAwareFieldInterface;
  17. use Pimcore\Model\DataObject\Traits\ObjectVarTrait;
  18. use Pimcore\Model\DataObject\Traits\OwnerAwareFieldTrait;
  19. use Pimcore\Model\Element\ElementDescriptor;
  20. use Pimcore\Model\Element\ElementInterface;
  21. class Video implements OwnerAwareFieldInterface
  22. {
  23.     use OwnerAwareFieldTrait;
  24.     use ObjectVarTrait;
  25.     /**
  26.      * @var string
  27.      */
  28.     protected $type;
  29.     /**
  30.      * @var string|int|ElementInterface|Asset|ElementDescriptor
  31.      */
  32.     protected $data;
  33.     /**
  34.      * @var string|int|Asset|ElementDescriptor|null
  35.      */
  36.     protected $poster;
  37.     /**
  38.      * @var string
  39.      */
  40.     protected $title;
  41.     /**
  42.      * @var string
  43.      */
  44.     protected $description;
  45.     /**
  46.      * @param Asset|string|int $data
  47.      */
  48.     public function setData($data)
  49.     {
  50.         $this->data $data;
  51.         $this->markMeDirty();
  52.     }
  53.     /**
  54.      * @return Asset|string|int
  55.      */
  56.     public function getData()
  57.     {
  58.         return $this->data;
  59.     }
  60.     /**
  61.      * @param string $type
  62.      */
  63.     public function setType($type)
  64.     {
  65.         $this->type $type;
  66.         $this->markMeDirty();
  67.     }
  68.     /**
  69.      * @return string
  70.      */
  71.     public function getType()
  72.     {
  73.         return $this->type;
  74.     }
  75.     /**
  76.      * @param string $description
  77.      */
  78.     public function setDescription($description)
  79.     {
  80.         $this->description $description;
  81.         $this->markMeDirty();
  82.     }
  83.     /**
  84.      * @return string
  85.      */
  86.     public function getDescription()
  87.     {
  88.         return $this->description;
  89.     }
  90.     /**
  91.      * @param Asset|int|string|null $poster
  92.      */
  93.     public function setPoster($poster)
  94.     {
  95.         $this->poster $poster;
  96.         $this->markMeDirty();
  97.     }
  98.     /**
  99.      * @return Asset|int|string|null
  100.      */
  101.     public function getPoster()
  102.     {
  103.         return $this->poster;
  104.     }
  105.     /**
  106.      * @param string $title
  107.      */
  108.     public function setTitle($title)
  109.     {
  110.         $this->title $title;
  111.         $this->markMeDirty();
  112.     }
  113.     /**
  114.      * @return string
  115.      */
  116.     public function getTitle()
  117.     {
  118.         return $this->title;
  119.     }
  120. }