var/cache/dev/ContainerTvMS3Ec/BookmarkService_3687bfa.php line 6

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