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