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