vendor/pimcore/pimcore/lib/Extension/Document/Areabrick/EditableDialogBoxConfiguration.php line 157

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\Extension\Document\Areabrick;
  15. class EditableDialogBoxConfiguration implements \JsonSerializable
  16. {
  17.     /**
  18.      * @var null|string
  19.      */
  20.     protected $id null;
  21.     /**
  22.      * @var null|int
  23.      */
  24.     protected $width 550;
  25.     /**
  26.      * @var null|int
  27.      */
  28.     protected $height 370;
  29.     /**
  30.      * @var array
  31.      */
  32.     protected $items = [];
  33.     /**
  34.      * @var bool
  35.      */
  36.     protected $reloadOnClose false;
  37.     /**
  38.      * @return string|null
  39.      */
  40.     public function getId(): ?string
  41.     {
  42.         return $this->id;
  43.     }
  44.     /**
  45.      * @param string|null $id
  46.      *
  47.      * @return $this
  48.      */
  49.     public function setId(?string $id): self
  50.     {
  51.         $this->id $id;
  52.         return $this;
  53.     }
  54.     /**
  55.      * @return int|null
  56.      */
  57.     public function getWidth(): ?int
  58.     {
  59.         return $this->width;
  60.     }
  61.     /**
  62.      * @param int|null $width
  63.      *
  64.      * @return $this
  65.      */
  66.     public function setWidth(?int $width): self
  67.     {
  68.         $this->width $width;
  69.         return $this;
  70.     }
  71.     /**
  72.      * @return int|null
  73.      */
  74.     public function getHeight(): ?int
  75.     {
  76.         return $this->height;
  77.     }
  78.     /**
  79.      * @param int|null $height
  80.      *
  81.      * @return $this
  82.      */
  83.     public function setHeight(?int $height): self
  84.     {
  85.         $this->height $height;
  86.         return $this;
  87.     }
  88.     /**
  89.      * @return array
  90.      */
  91.     public function getItems(): array
  92.     {
  93.         return $this->items;
  94.     }
  95.     /**
  96.      * @param array $items
  97.      *
  98.      * @return $this
  99.      */
  100.     public function setItems(array $items): self
  101.     {
  102.         $this->items $items;
  103.         return $this;
  104.     }
  105.     /**
  106.      * @param array $item
  107.      *
  108.      * @return $this
  109.      */
  110.     public function addItem(array $item): self
  111.     {
  112.         $this->items[] = $item;
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return bool
  117.      */
  118.     public function getReloadOnClose(): bool
  119.     {
  120.         return $this->reloadOnClose;
  121.     }
  122.     /**
  123.      * @param bool $reloadOnClose
  124.      *
  125.      * @return $this
  126.      */
  127.     public function setReloadOnClose(bool $reloadOnClose): self
  128.     {
  129.         $this->reloadOnClose $reloadOnClose;
  130.         return $this;
  131.     }
  132.     public function jsonSerialize()
  133.     {
  134.         return get_object_vars($this);
  135.     }
  136. }