![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/magento/module-page-builder/Model/Dom/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\PageBuilder\Model\Dom; use Gt\Dom\StringMap as GtDomStringMap; use Magento\Framework\ObjectManagerInterface; use Magento\PageBuilder\Model\Dom\Adapter\StringMapInterface; /** * PhpGt DOM StringMap wrapper. */ class StringMap implements StringMapInterface { /** * @var ObjectManagerInterface */ private $objectManager; /** * @var GtDomStringMap */ private $stringMap; /** * HtmlDocument constructor. * * @param ObjectManagerInterface $objectManager * @param GtDomStringMap $stringMap */ public function __construct( ObjectManagerInterface $objectManager, GtDomStringMap $stringMap ) { $this->objectManager = $objectManager; $this->stringMap = $stringMap; } /** * @inheritDoc */ public function __isset(string $name): bool { return $this->stringMap->__isset($name); } /** * @inheritDoc */ public function __unset(string $name): void { $this->stringMap->__unset($name); } /** * @inheritDoc */ public function __get(string $name): ?string { return $this->stringMap->__get($name); } /** * @inheritDoc */ public function __set(string $name, string $value): void { $this->stringMap->__set($name, $value); } /** * @inheritDoc */ public function offsetExists($offset): bool { return $this->stringMap->offsetExists($offset); } /** * @inheritDoc */ public function offsetGet($offset): ?string { return $this->stringMap->offsetGet($offset); } /** * @inheritDoc */ public function offsetSet($offset, $value): void { $this->stringMap->offsetSet($offset, $value); } /** * @inheritDoc */ public function offsetUnset($offset): void { $this->stringMap->offsetUnset($offset); } }