var/cache/dev/ContainerCiowZQ3/PaginatorInterface_82dac15.php line 30

Open in your IDE?
  1. <?php
  2. namespace ContainerCiowZQ3;
  3. include_once \dirname(__DIR__, 4).'/vendor/knplabs/knp-components/src/Knp/Component/Pager/PaginatorInterface.php';
  4. include_once \dirname(__DIR__, 4).'/vendor/knplabs/knp-components/src/Knp/Component/Pager/Paginator.php';
  5. class PaginatorInterface_82dac15 implements \ProxyManager\Proxy\VirtualProxyInterface, \Knp\Component\Pager\PaginatorInterface
  6. {
  7. /**
  8. * @var \Knp\Component\Pager\PaginatorInterface|null wrapped object, if the proxy is initialized
  9. */
  10. private $valueHolderb70c6 = null;
  11. /**
  12. * @var \Closure|null initializer responsible for generating the wrapped object
  13. */
  14. private $initializer30ce0 = null;
  15. /**
  16. * @var bool[] map of public properties of the parent class
  17. */
  18. private static $publicPropertiesbb2b3 = [
  19. ];
  20. public function paginate($target, int $page = 1, ?int $limit = null, array $options = []): \Knp\Component\Pager\Pagination\PaginationInterface
  21. {
  22. $this->initializer30ce0 && ($this->initializer30ce0->__invoke($valueHolderb70c6, $this, 'paginate', array('target' => $target, 'page' => $page, 'limit' => $limit, 'options' => $options), $this->initializer30ce0) || 1) && $this->valueHolderb70c6 = $valueHolderb70c6;
  23. if ($this->valueHolderb70c6 === $returnValue = $this->valueHolderb70c6->paginate($target, $page, $limit, $options)) {
  24. return $this;
  25. }
  26. return $returnValue;
  27. }
  28. /**
  29. * Constructor for lazy initialization
  30. *
  31. * @param \Closure|null $initializer
  32. */
  33. public static function staticProxyConstructor($initializer)
  34. {
  35. static $reflection;
  36. $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
  37. $instance = $reflection->newInstanceWithoutConstructor();
  38. $instance->initializer30ce0 = $initializer;
  39. return $instance;
  40. }
  41. public function __construct()
  42. {
  43. static $reflection;
  44. if (! $this->valueHolderb70c6) {
  45. $reflection = $reflection ?? new \ReflectionClass('Knp\\Component\\Pager\\PaginatorInterface');
  46. $this->valueHolderb70c6 = $reflection->newInstanceWithoutConstructor();
  47. }
  48. }
  49. public function & __get($name)
  50. {
  51. $this->initializer30ce0 && ($this->initializer30ce0->__invoke($valueHolderb70c6, $this, '__get', ['name' => $name], $this->initializer30ce0) || 1) && $this->valueHolderb70c6 = $valueHolderb70c6;
  52. if (isset(self::$publicPropertiesbb2b3[$name])) {
  53. return $this->valueHolderb70c6->$name;
  54. }
  55. $realInstanceReflection = new \ReflectionClass('Knp\\Component\\Pager\\PaginatorInterface');
  56. if (! $realInstanceReflection->hasProperty($name)) {
  57. $targetObject = $this->valueHolderb70c6;
  58. $backtrace = debug_backtrace(false, 1);
  59. trigger_error(
  60. sprintf(
  61. 'Undefined property: %s::$%s in %s on line %s',
  62. $realInstanceReflection->getName(),
  63. $name,
  64. $backtrace[0]['file'],
  65. $backtrace[0]['line']
  66. ),
  67. \E_USER_NOTICE
  68. );
  69. return $targetObject->$name;
  70. }
  71. $targetObject = $this->valueHolderb70c6;
  72. $accessor = function & () use ($targetObject, $name) {
  73. return $targetObject->$name;
  74. };
  75. $backtrace = debug_backtrace(true, 2);
  76. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  77. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  78. $returnValue = & $accessor();
  79. return $returnValue;
  80. }
  81. public function __set($name, $value)
  82. {
  83. $this->initializer30ce0 && ($this->initializer30ce0->__invoke($valueHolderb70c6, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer30ce0) || 1) && $this->valueHolderb70c6 = $valueHolderb70c6;
  84. $realInstanceReflection = new \ReflectionClass('Knp\\Component\\Pager\\PaginatorInterface');
  85. if (! $realInstanceReflection->hasProperty($name)) {
  86. $targetObject = $this->valueHolderb70c6;
  87. $targetObject->$name = $value;
  88. return $targetObject->$name;
  89. }
  90. $targetObject = $this->valueHolderb70c6;
  91. $accessor = function & () use ($targetObject, $name, $value) {
  92. $targetObject->$name = $value;
  93. return $targetObject->$name;
  94. };
  95. $backtrace = debug_backtrace(true, 2);
  96. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  97. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  98. $returnValue = & $accessor();
  99. return $returnValue;
  100. }
  101. public function __isset($name)
  102. {
  103. $this->initializer30ce0 && ($this->initializer30ce0->__invoke($valueHolderb70c6, $this, '__isset', array('name' => $name), $this->initializer30ce0) || 1) && $this->valueHolderb70c6 = $valueHolderb70c6;
  104. $realInstanceReflection = new \ReflectionClass('Knp\\Component\\Pager\\PaginatorInterface');
  105. if (! $realInstanceReflection->hasProperty($name)) {
  106. $targetObject = $this->valueHolderb70c6;
  107. return isset($targetObject->$name);
  108. }
  109. $targetObject = $this->valueHolderb70c6;
  110. $accessor = function () use ($targetObject, $name) {
  111. return isset($targetObject->$name);
  112. };
  113. $backtrace = debug_backtrace(true, 2);
  114. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  115. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  116. $returnValue = $accessor();
  117. return $returnValue;
  118. }
  119. public function __unset($name)
  120. {
  121. $this->initializer30ce0 && ($this->initializer30ce0->__invoke($valueHolderb70c6, $this, '__unset', array('name' => $name), $this->initializer30ce0) || 1) && $this->valueHolderb70c6 = $valueHolderb70c6;
  122. $realInstanceReflection = new \ReflectionClass('Knp\\Component\\Pager\\PaginatorInterface');
  123. if (! $realInstanceReflection->hasProperty($name)) {
  124. $targetObject = $this->valueHolderb70c6;
  125. unset($targetObject->$name);
  126. return;
  127. }
  128. $targetObject = $this->valueHolderb70c6;
  129. $accessor = function () use ($targetObject, $name) {
  130. unset($targetObject->$name);
  131. return;
  132. };
  133. $backtrace = debug_backtrace(true, 2);
  134. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  135. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  136. $accessor();
  137. }
  138. public function __clone()
  139. {
  140. $this->initializer30ce0 && ($this->initializer30ce0->__invoke($valueHolderb70c6, $this, '__clone', array(), $this->initializer30ce0) || 1) && $this->valueHolderb70c6 = $valueHolderb70c6;
  141. $this->valueHolderb70c6 = clone $this->valueHolderb70c6;
  142. }
  143. public function __sleep()
  144. {
  145. $this->initializer30ce0 && ($this->initializer30ce0->__invoke($valueHolderb70c6, $this, '__sleep', array(), $this->initializer30ce0) || 1) && $this->valueHolderb70c6 = $valueHolderb70c6;
  146. return array('valueHolderb70c6');
  147. }
  148. public function __wakeup()
  149. {
  150. }
  151. public function setProxyInitializer(?\Closure $initializer = null): void
  152. {
  153. $this->initializer30ce0 = $initializer;
  154. }
  155. public function getProxyInitializer(): ?\Closure
  156. {
  157. return $this->initializer30ce0;
  158. }
  159. public function initializeProxy(): bool
  160. {
  161. return $this->initializer30ce0 && ($this->initializer30ce0->__invoke($valueHolderb70c6, $this, 'initializeProxy', array(), $this->initializer30ce0) || 1) && $this->valueHolderb70c6 = $valueHolderb70c6;
  162. }
  163. public function isProxyInitialized(): bool
  164. {
  165. return null !== $this->valueHolderb70c6;
  166. }
  167. public function getWrappedValueHolderValue()
  168. {
  169. return $this->valueHolderb70c6;
  170. }
  171. }
  172. if (!\class_exists('PaginatorInterface_82dac15', false)) {
  173. \class_alias(__NAMESPACE__.'\\PaginatorInterface_82dac15', 'PaginatorInterface_82dac15', false);
  174. }