var/cache/dev/ContainerTvMS3Ec/ObjectStateService_5e81e88.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/ObjectStateService.php';
  4. class ObjectStateService_5e81e88 extends \eZ\Publish\Core\Repository\ObjectStateService implements \ProxyManager\Proxy\VirtualProxyInterface
  5. {
  6.     /**
  7.      * @var \eZ\Publish\Core\Repository\ObjectStateService|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 createObjectStateGroup(\eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroupCreateStruct $objectStateGroupCreateStruct) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
  21.     {
  22.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'createObjectStateGroup', array('objectStateGroupCreateStruct' => $objectStateGroupCreateStruct), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  23.         return $this->valueHoldere987c->createObjectStateGroup($objectStateGroupCreateStruct);
  24.     }
  25.     public function loadObjectStateGroup(int $objectStateGroupId, array $prioritizedLanguages = []) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
  26.     {
  27.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'loadObjectStateGroup', array('objectStateGroupId' => $objectStateGroupId'prioritizedLanguages' => $prioritizedLanguages), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  28.         return $this->valueHoldere987c->loadObjectStateGroup($objectStateGroupId$prioritizedLanguages);
  29.     }
  30.     public function loadObjectStateGroupByIdentifier(string $objectStateGroupIdentifier, array $prioritizedLanguages = []) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
  31.     {
  32.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'loadObjectStateGroupByIdentifier', array('objectStateGroupIdentifier' => $objectStateGroupIdentifier'prioritizedLanguages' => $prioritizedLanguages), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  33.         return $this->valueHoldere987c->loadObjectStateGroupByIdentifier($objectStateGroupIdentifier$prioritizedLanguages);
  34.     }
  35.     public function loadObjectStateGroups(int $offset 0int $limit = -1, array $prioritizedLanguages = []) : iterable
  36.     {
  37.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'loadObjectStateGroups', array('offset' => $offset'limit' => $limit'prioritizedLanguages' => $prioritizedLanguages), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  38.         return $this->valueHoldere987c->loadObjectStateGroups($offset$limit$prioritizedLanguages);
  39.     }
  40.     public function loadObjectStates(\eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup $objectStateGroup, array $prioritizedLanguages = []) : iterable
  41.     {
  42.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'loadObjectStates', array('objectStateGroup' => $objectStateGroup'prioritizedLanguages' => $prioritizedLanguages), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  43.         return $this->valueHoldere987c->loadObjectStates($objectStateGroup$prioritizedLanguages);
  44.     }
  45.     public function updateObjectStateGroup(\eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup $objectStateGroup, \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroupUpdateStruct $objectStateGroupUpdateStruct) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
  46.     {
  47.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'updateObjectStateGroup', array('objectStateGroup' => $objectStateGroup'objectStateGroupUpdateStruct' => $objectStateGroupUpdateStruct), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  48.         return $this->valueHoldere987c->updateObjectStateGroup($objectStateGroup$objectStateGroupUpdateStruct);
  49.     }
  50.     public function deleteObjectStateGroup(\eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup $objectStateGroup) : void
  51.     {
  52.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'deleteObjectStateGroup', array('objectStateGroup' => $objectStateGroup), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  53.         $this->valueHoldere987c->deleteObjectStateGroup($objectStateGroup);
  54. return;
  55.     }
  56.     public function createObjectState(\eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup $objectStateGroup, \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateCreateStruct $objectStateCreateStruct) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectState
  57.     {
  58.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'createObjectState', array('objectStateGroup' => $objectStateGroup'objectStateCreateStruct' => $objectStateCreateStruct), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  59.         return $this->valueHoldere987c->createObjectState($objectStateGroup$objectStateCreateStruct);
  60.     }
  61.     public function loadObjectState(int $stateId, array $prioritizedLanguages = []) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectState
  62.     {
  63.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'loadObjectState', array('stateId' => $stateId'prioritizedLanguages' => $prioritizedLanguages), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  64.         return $this->valueHoldere987c->loadObjectState($stateId$prioritizedLanguages);
  65.     }
  66.     public function loadObjectStateByIdentifier(\eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup $objectStateGroupstring $objectStateIdentifier, array $prioritizedLanguages = []) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectState
  67.     {
  68.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'loadObjectStateByIdentifier', array('objectStateGroup' => $objectStateGroup'objectStateIdentifier' => $objectStateIdentifier'prioritizedLanguages' => $prioritizedLanguages), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  69.         return $this->valueHoldere987c->loadObjectStateByIdentifier($objectStateGroup$objectStateIdentifier$prioritizedLanguages);
  70.     }
  71.     public function updateObjectState(\eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectState, \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateUpdateStruct $objectStateUpdateStruct) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectState
  72.     {
  73.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'updateObjectState', array('objectState' => $objectState'objectStateUpdateStruct' => $objectStateUpdateStruct), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  74.         return $this->valueHoldere987c->updateObjectState($objectState$objectStateUpdateStruct);
  75.     }
  76.     public function setPriorityOfObjectState(\eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectStateint $priority) : void
  77.     {
  78.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'setPriorityOfObjectState', array('objectState' => $objectState'priority' => $priority), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  79.         $this->valueHoldere987c->setPriorityOfObjectState($objectState$priority);
  80. return;
  81.     }
  82.     public function deleteObjectState(\eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectState) : void
  83.     {
  84.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'deleteObjectState', array('objectState' => $objectState), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  85.         $this->valueHoldere987c->deleteObjectState($objectState);
  86. return;
  87.     }
  88.     public function setContentState(\eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup $objectStateGroup, \eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectState) : void
  89.     {
  90.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'setContentState', array('contentInfo' => $contentInfo'objectStateGroup' => $objectStateGroup'objectState' => $objectState), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  91.         $this->valueHoldere987c->setContentState($contentInfo$objectStateGroup$objectState);
  92. return;
  93.     }
  94.     public function getContentState(\eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup $objectStateGroup) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectState
  95.     {
  96.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'getContentState', array('contentInfo' => $contentInfo'objectStateGroup' => $objectStateGroup), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  97.         return $this->valueHoldere987c->getContentState($contentInfo$objectStateGroup);
  98.     }
  99.     public function getContentCount(\eZ\Publish\API\Repository\Values\ObjectState\ObjectState $objectState) : int
  100.     {
  101.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'getContentCount', array('objectState' => $objectState), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  102.         return $this->valueHoldere987c->getContentCount($objectState);
  103.     }
  104.     public function newObjectStateGroupCreateStruct(string $identifier) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroupCreateStruct
  105.     {
  106.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'newObjectStateGroupCreateStruct', array('identifier' => $identifier), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  107.         return $this->valueHoldere987c->newObjectStateGroupCreateStruct($identifier);
  108.     }
  109.     public function newObjectStateGroupUpdateStruct() : \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroupUpdateStruct
  110.     {
  111.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'newObjectStateGroupUpdateStruct', array(), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  112.         return $this->valueHoldere987c->newObjectStateGroupUpdateStruct();
  113.     }
  114.     public function newObjectStateCreateStruct(string $identifier) : \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateCreateStruct
  115.     {
  116.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'newObjectStateCreateStruct', array('identifier' => $identifier), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  117.         return $this->valueHoldere987c->newObjectStateCreateStruct($identifier);
  118.     }
  119.     public function newObjectStateUpdateStruct() : \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateUpdateStruct
  120.     {
  121.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'newObjectStateUpdateStruct', array(), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  122.         return $this->valueHoldere987c->newObjectStateUpdateStruct();
  123.     }
  124.     /**
  125.      * Constructor for lazy initialization
  126.      *
  127.      * @param \Closure|null $initializer
  128.      */
  129.     public static function staticProxyConstructor($initializer)
  130.     {
  131.         static $reflection;
  132.         $reflection $reflection ?? new \ReflectionClass(__CLASS__);
  133.         $instance   $reflection->newInstanceWithoutConstructor();
  134.         unset($instance->repository$instance->objectStateHandler$instance->settings);
  135.         \Closure::bind(function (\eZ\Publish\Core\Repository\ObjectStateService $instance) {
  136.             unset($instance->permissionResolver);
  137.         }, $instance'eZ\\Publish\\Core\\Repository\\ObjectStateService')->__invoke($instance);
  138.         $instance->initializer298a1 $initializer;
  139.         return $instance;
  140.     }
  141.     public function __construct(\eZ\Publish\API\Repository\Repository $repository, \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler $objectStateHandler, \eZ\Publish\API\Repository\PermissionResolver $permissionResolver, array $settings = [])
  142.     {
  143.         static $reflection;
  144.         if (! $this->valueHoldere987c) {
  145.             $reflection $reflection ?? new \ReflectionClass('eZ\\Publish\\Core\\Repository\\ObjectStateService');
  146.             $this->valueHoldere987c $reflection->newInstanceWithoutConstructor();
  147.         unset($this->repository$this->objectStateHandler$this->settings);
  148.         \Closure::bind(function (\eZ\Publish\Core\Repository\ObjectStateService $instance) {
  149.             unset($instance->permissionResolver);
  150.         }, $this'eZ\\Publish\\Core\\Repository\\ObjectStateService')->__invoke($this);
  151.         }
  152.         $this->valueHoldere987c->__construct($repository$objectStateHandler$permissionResolver$settings);
  153.     }
  154.     public function & __get($name)
  155.     {
  156.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'__get', ['name' => $name], $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  157.         if (isset(self::$publicProperties1d886[$name])) {
  158.             return $this->valueHoldere987c->$name;
  159.         }
  160.         $realInstanceReflection = new \ReflectionClass('eZ\\Publish\\Core\\Repository\\ObjectStateService');
  161.         if (! $realInstanceReflection->hasProperty($name)) {
  162.             $targetObject $this->valueHoldere987c;
  163.             $backtrace debug_backtrace(false1);
  164.             trigger_error(
  165.                 sprintf(
  166.                     'Undefined property: %s::$%s in %s on line %s',
  167.                     $realInstanceReflection->getName(),
  168.                     $name,
  169.                     $backtrace[0]['file'],
  170.                     $backtrace[0]['line']
  171.                 ),
  172.                 \E_USER_NOTICE
  173.             );
  174.             return $targetObject->$name;
  175.         }
  176.         $targetObject $this->valueHoldere987c;
  177.         $accessor = function & () use ($targetObject$name) {
  178.             return $targetObject->$name;
  179.         };
  180.         $backtrace debug_backtrace(true2);
  181.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  182.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  183.         $returnValue = & $accessor();
  184.         return $returnValue;
  185.     }
  186.     public function __set($name$value)
  187.     {
  188.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'__set', array('name' => $name'value' => $value), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  189.         $realInstanceReflection = new \ReflectionClass('eZ\\Publish\\Core\\Repository\\ObjectStateService');
  190.         if (! $realInstanceReflection->hasProperty($name)) {
  191.             $targetObject $this->valueHoldere987c;
  192.             $targetObject->$name $value;
  193.             return $targetObject->$name;
  194.         }
  195.         $targetObject $this->valueHoldere987c;
  196.         $accessor = function & () use ($targetObject$name$value) {
  197.             $targetObject->$name $value;
  198.             return $targetObject->$name;
  199.         };
  200.         $backtrace debug_backtrace(true2);
  201.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  202.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  203.         $returnValue = & $accessor();
  204.         return $returnValue;
  205.     }
  206.     public function __isset($name)
  207.     {
  208.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'__isset', array('name' => $name), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  209.         $realInstanceReflection = new \ReflectionClass('eZ\\Publish\\Core\\Repository\\ObjectStateService');
  210.         if (! $realInstanceReflection->hasProperty($name)) {
  211.             $targetObject $this->valueHoldere987c;
  212.             return isset($targetObject->$name);
  213.         }
  214.         $targetObject $this->valueHoldere987c;
  215.         $accessor = function () use ($targetObject$name) {
  216.             return isset($targetObject->$name);
  217.         };
  218.         $backtrace debug_backtrace(true2);
  219.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  220.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  221.         $returnValue $accessor();
  222.         return $returnValue;
  223.     }
  224.     public function __unset($name)
  225.     {
  226.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'__unset', array('name' => $name), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  227.         $realInstanceReflection = new \ReflectionClass('eZ\\Publish\\Core\\Repository\\ObjectStateService');
  228.         if (! $realInstanceReflection->hasProperty($name)) {
  229.             $targetObject $this->valueHoldere987c;
  230.             unset($targetObject->$name);
  231.             return;
  232.         }
  233.         $targetObject $this->valueHoldere987c;
  234.         $accessor = function () use ($targetObject$name) {
  235.             unset($targetObject->$name);
  236.             return;
  237.         };
  238.         $backtrace debug_backtrace(true2);
  239.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  240.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  241.         $accessor();
  242.     }
  243.     public function __clone()
  244.     {
  245.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'__clone', array(), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  246.         $this->valueHoldere987c = clone $this->valueHoldere987c;
  247.     }
  248.     public function __sleep()
  249.     {
  250.         $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'__sleep', array(), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  251.         return array('valueHoldere987c');
  252.     }
  253.     public function __wakeup()
  254.     {
  255.         unset($this->repository$this->objectStateHandler$this->settings);
  256.         \Closure::bind(function (\eZ\Publish\Core\Repository\ObjectStateService $instance) {
  257.             unset($instance->permissionResolver);
  258.         }, $this'eZ\\Publish\\Core\\Repository\\ObjectStateService')->__invoke($this);
  259.     }
  260.     public function setProxyInitializer(\Closure $initializer null) : void
  261.     {
  262.         $this->initializer298a1 $initializer;
  263.     }
  264.     public function getProxyInitializer() : ?\Closure
  265.     {
  266.         return $this->initializer298a1;
  267.     }
  268.     public function initializeProxy() : bool
  269.     {
  270.         return $this->initializer298a1 && ($this->initializer298a1->__invoke($valueHoldere987c$this'initializeProxy', array(), $this->initializer298a1) || 1) && $this->valueHoldere987c $valueHoldere987c;
  271.     }
  272.     public function isProxyInitialized() : bool
  273.     {
  274.         return null !== $this->valueHoldere987c;
  275.     }
  276.     public function getWrappedValueHolderValue()
  277.     {
  278.         return $this->valueHoldere987c;
  279.     }
  280. }
  281. if (!\class_exists('ObjectStateService_5e81e88'false)) {
  282.     \class_alias(__NAMESPACE__.'\\ObjectStateService_5e81e88''ObjectStateService_5e81e88'false);
  283. }