var/cache/website/dev/ContainerKa7X9Da/BlockResolver_c49a5f4.php line 26

Open in your IDE?
  1. <?php
  2. namespace ContainerKa7X9Da;
  3. include_once \dirname(__DIR__5).'/vendor/sulu/headless-bundle/Content/ContentTypeResolver/ContentTypeResolverInterface.php';
  4. include_once \dirname(__DIR__5).'/vendor/sulu/headless-bundle/Content/ContentTypeResolver/BlockResolver.php';
  5. class BlockResolver_c49a5f4 extends \Sulu\Bundle\HeadlessBundle\Content\ContentTypeResolver\BlockResolver implements \ProxyManager\Proxy\VirtualProxyInterface
  6. {
  7.     /**
  8.      * @var \Sulu\Bundle\HeadlessBundle\Content\ContentTypeResolver\BlockResolver|null wrapped object, if the proxy is initialized
  9.      */
  10.     private $valueHolder64d01 null;
  11.     /**
  12.      * @var \Closure|null initializer responsible for generating the wrapped object
  13.      */
  14.     private $initializer33624 null;
  15.     /**
  16.      * @var bool[] map of public properties of the parent class
  17.      */
  18.     private static $publicProperties6d664 = [
  19.         
  20.     ];
  21.     public function resolve($data\Sulu\Component\Content\Compat\PropertyInterface $propertystring $locale, array $attributes = []) : \Sulu\Bundle\HeadlessBundle\Content\ContentView
  22.     {
  23.         $this->initializer33624 && ($this->initializer33624->__invoke($valueHolder64d01$this'resolve', array('data' => $data'property' => $property'locale' => $locale'attributes' => $attributes), $this->initializer33624) || 1) && $this->valueHolder64d01 $valueHolder64d01;
  24.         return $this->valueHolder64d01->resolve($data$property$locale$attributes);
  25.     }
  26.     /**
  27.      * Constructor for lazy initialization
  28.      *
  29.      * @param \Closure|null $initializer
  30.      */
  31.     public static function staticProxyConstructor($initializer)
  32.     {
  33.         static $reflection;
  34.         $reflection $reflection ?? new \ReflectionClass(__CLASS__);
  35.         $instance   $reflection->newInstanceWithoutConstructor();
  36.         \Closure::bind(function (\Sulu\Bundle\HeadlessBundle\Content\ContentTypeResolver\BlockResolver $instance) {
  37.             unset($instance->contentResolver$instance->blockVisitors);
  38.         }, $instance'Sulu\\Bundle\\HeadlessBundle\\Content\\ContentTypeResolver\\BlockResolver')->__invoke($instance);
  39.         $instance->initializer33624 $initializer;
  40.         return $instance;
  41.     }
  42.     public function __construct(\Sulu\Bundle\HeadlessBundle\Content\ContentResolverInterface $contentResolver\Traversable $blockVisitors)
  43.     {
  44.         static $reflection;
  45.         if (! $this->valueHolder64d01) {
  46.             $reflection $reflection ?? new \ReflectionClass('Sulu\\Bundle\\HeadlessBundle\\Content\\ContentTypeResolver\\BlockResolver');
  47.             $this->valueHolder64d01 $reflection->newInstanceWithoutConstructor();
  48.         \Closure::bind(function (\Sulu\Bundle\HeadlessBundle\Content\ContentTypeResolver\BlockResolver $instance) {
  49.             unset($instance->contentResolver$instance->blockVisitors);
  50.         }, $this'Sulu\\Bundle\\HeadlessBundle\\Content\\ContentTypeResolver\\BlockResolver')->__invoke($this);
  51.         }
  52.         $this->valueHolder64d01->__construct($contentResolver$blockVisitors);
  53.     }
  54.     public function & __get($name)
  55.     {
  56.         $this->initializer33624 && ($this->initializer33624->__invoke($valueHolder64d01$this'__get', ['name' => $name], $this->initializer33624) || 1) && $this->valueHolder64d01 $valueHolder64d01;
  57.         if (isset(self::$publicProperties6d664[$name])) {
  58.             return $this->valueHolder64d01->$name;
  59.         }
  60.         $realInstanceReflection = new \ReflectionClass('Sulu\\Bundle\\HeadlessBundle\\Content\\ContentTypeResolver\\BlockResolver');
  61.         if (! $realInstanceReflection->hasProperty($name)) {
  62.             $targetObject $this->valueHolder64d01;
  63.             $backtrace debug_backtrace(false1);
  64.             trigger_error(
  65.                 sprintf(
  66.                     'Undefined property: %s::$%s in %s on line %s',
  67.                     $realInstanceReflection->getName(),
  68.                     $name,
  69.                     $backtrace[0]['file'],
  70.                     $backtrace[0]['line']
  71.                 ),
  72.                 \E_USER_NOTICE
  73.             );
  74.             return $targetObject->$name;
  75.         }
  76.         $targetObject $this->valueHolder64d01;
  77.         $accessor = function & () use ($targetObject$name) {
  78.             return $targetObject->$name;
  79.         };
  80.         $backtrace debug_backtrace(true2);
  81.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  82.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  83.         $returnValue = & $accessor();
  84.         return $returnValue;
  85.     }
  86.     public function __set($name$value)
  87.     {
  88.         $this->initializer33624 && ($this->initializer33624->__invoke($valueHolder64d01$this'__set', array('name' => $name'value' => $value), $this->initializer33624) || 1) && $this->valueHolder64d01 $valueHolder64d01;
  89.         $realInstanceReflection = new \ReflectionClass('Sulu\\Bundle\\HeadlessBundle\\Content\\ContentTypeResolver\\BlockResolver');
  90.         if (! $realInstanceReflection->hasProperty($name)) {
  91.             $targetObject $this->valueHolder64d01;
  92.             $targetObject->$name $value;
  93.             return $targetObject->$name;
  94.         }
  95.         $targetObject $this->valueHolder64d01;
  96.         $accessor = function & () use ($targetObject$name$value) {
  97.             $targetObject->$name $value;
  98.             return $targetObject->$name;
  99.         };
  100.         $backtrace debug_backtrace(true2);
  101.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  102.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  103.         $returnValue = & $accessor();
  104.         return $returnValue;
  105.     }
  106.     public function __isset($name)
  107.     {
  108.         $this->initializer33624 && ($this->initializer33624->__invoke($valueHolder64d01$this'__isset', array('name' => $name), $this->initializer33624) || 1) && $this->valueHolder64d01 $valueHolder64d01;
  109.         $realInstanceReflection = new \ReflectionClass('Sulu\\Bundle\\HeadlessBundle\\Content\\ContentTypeResolver\\BlockResolver');
  110.         if (! $realInstanceReflection->hasProperty($name)) {
  111.             $targetObject $this->valueHolder64d01;
  112.             return isset($targetObject->$name);
  113.         }
  114.         $targetObject $this->valueHolder64d01;
  115.         $accessor = function () use ($targetObject$name) {
  116.             return isset($targetObject->$name);
  117.         };
  118.         $backtrace debug_backtrace(true2);
  119.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  120.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  121.         $returnValue $accessor();
  122.         return $returnValue;
  123.     }
  124.     public function __unset($name)
  125.     {
  126.         $this->initializer33624 && ($this->initializer33624->__invoke($valueHolder64d01$this'__unset', array('name' => $name), $this->initializer33624) || 1) && $this->valueHolder64d01 $valueHolder64d01;
  127.         $realInstanceReflection = new \ReflectionClass('Sulu\\Bundle\\HeadlessBundle\\Content\\ContentTypeResolver\\BlockResolver');
  128.         if (! $realInstanceReflection->hasProperty($name)) {
  129.             $targetObject $this->valueHolder64d01;
  130.             unset($targetObject->$name);
  131.             return;
  132.         }
  133.         $targetObject $this->valueHolder64d01;
  134.         $accessor = function () use ($targetObject$name) {
  135.             unset($targetObject->$name);
  136.             return;
  137.         };
  138.         $backtrace debug_backtrace(true2);
  139.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  140.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  141.         $accessor();
  142.     }
  143.     public function __clone()
  144.     {
  145.         $this->initializer33624 && ($this->initializer33624->__invoke($valueHolder64d01$this'__clone', array(), $this->initializer33624) || 1) && $this->valueHolder64d01 $valueHolder64d01;
  146.         $this->valueHolder64d01 = clone $this->valueHolder64d01;
  147.     }
  148.     public function __sleep()
  149.     {
  150.         $this->initializer33624 && ($this->initializer33624->__invoke($valueHolder64d01$this'__sleep', array(), $this->initializer33624) || 1) && $this->valueHolder64d01 $valueHolder64d01;
  151.         return array('valueHolder64d01');
  152.     }
  153.     public function __wakeup()
  154.     {
  155.         \Closure::bind(function (\Sulu\Bundle\HeadlessBundle\Content\ContentTypeResolver\BlockResolver $instance) {
  156.             unset($instance->contentResolver$instance->blockVisitors);
  157.         }, $this'Sulu\\Bundle\\HeadlessBundle\\Content\\ContentTypeResolver\\BlockResolver')->__invoke($this);
  158.     }
  159.     public function setProxyInitializer(\Closure $initializer null) : void
  160.     {
  161.         $this->initializer33624 $initializer;
  162.     }
  163.     public function getProxyInitializer() : ?\Closure
  164.     {
  165.         return $this->initializer33624;
  166.     }
  167.     public function initializeProxy() : bool
  168.     {
  169.         return $this->initializer33624 && ($this->initializer33624->__invoke($valueHolder64d01$this'initializeProxy', array(), $this->initializer33624) || 1) && $this->valueHolder64d01 $valueHolder64d01;
  170.     }
  171.     public function isProxyInitialized() : bool
  172.     {
  173.         return null !== $this->valueHolder64d01;
  174.     }
  175.     public function getWrappedValueHolderValue()
  176.     {
  177.         return $this->valueHolder64d01;
  178.     }
  179. }
  180. if (!\class_exists('BlockResolver_c49a5f4'false)) {
  181.     \class_alias(__NAMESPACE__.'\\BlockResolver_c49a5f4''BlockResolver_c49a5f4'false);
  182. }