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