var/cache/dev/Container8LCi6zJ/NoticiaRepository_54ab26b.php line 95

Open in your IDE?
  1. <?php
  2. namespace Container8LCi6zJ;
  3. include_once \dirname(__DIR__, 4).'/src/Repository/WebServices/AbstractWsRepository.php';
  4. include_once \dirname(__DIR__, 4).'/src/Repository/WebServices/AbstractCacheWsRepository.php';
  5. include_once \dirname(__DIR__, 4).'/src/Interfaces/RepositoryInterface.php';
  6. include_once \dirname(__DIR__, 4).'/src/Interfaces/NoticiasRepositoryInterface.php';
  7. include_once \dirname(__DIR__, 4).'/src/Repository/WebServices/NoticiaRepository.php';
  8. class NoticiaRepository_54ab26b extends \App\Repository\WebServices\NoticiaRepository implements \ProxyManager\Proxy\VirtualProxyInterface
  9. {
  10. /**
  11. * @var \App\Repository\WebServices\NoticiaRepository|null wrapped object, if the proxy is initialized
  12. */
  13. private $valueHolder1f8e2 = null;
  14. /**
  15. * @var \Closure|null initializer responsible for generating the wrapped object
  16. */
  17. private $initializer41009 = null;
  18. /**
  19. * @var bool[] map of public properties of the parent class
  20. */
  21. private static $publicPropertiesbcbea = [
  22. ];
  23. public function save($object)
  24. {
  25. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'save', array('object' => $object), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  26. return $this->valueHolder1f8e2->save($object);
  27. }
  28. public function addView($id) : ?int
  29. {
  30. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'addView', array('id' => $id), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  31. return $this->valueHolder1f8e2->addView($id);
  32. }
  33. public function all($subParameters = '', $cachear = true) : ?\Doctrine\Common\Collections\ArrayCollection
  34. {
  35. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'all', array('subParameters' => $subParameters, 'cachear' => $cachear), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  36. return $this->valueHolder1f8e2->all($subParameters, $cachear);
  37. }
  38. public function find(\Doctrine\Common\Collections\Criteria $criteria, $cachear = true, $extraparams = []) : ?\Doctrine\Common\Collections\ArrayCollection
  39. {
  40. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'find', array('criteria' => $criteria, 'cachear' => $cachear, 'extraparams' => $extraparams), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  41. return $this->valueHolder1f8e2->find($criteria, $cachear, $extraparams);
  42. }
  43. public function findById(int $id, $cachear = true, $extraparams = [])
  44. {
  45. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'findById', array('id' => $id, 'cachear' => $cachear, 'extraparams' => $extraparams), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  46. return $this->valueHolder1f8e2->findById($id, $cachear, $extraparams);
  47. }
  48. public function getEntityClass()
  49. {
  50. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'getEntityClass', array(), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  51. return $this->valueHolder1f8e2->getEntityClass();
  52. }
  53. public function findOne(\Doctrine\Common\Collections\Criteria $criteria, $cachear = null, $extraparams = [])
  54. {
  55. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'findOne', array('criteria' => $criteria, 'cachear' => $cachear, 'extraparams' => $extraparams), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  56. return $this->valueHolder1f8e2->findOne($criteria, $cachear, $extraparams);
  57. }
  58. public function delete($object, bool $force = false) : void
  59. {
  60. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'delete', array('object' => $object, 'force' => $force), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  61. $this->valueHolder1f8e2->delete($object, $force);
  62. return;
  63. }
  64. public function saveAndGet($object, $queryParams = [])
  65. {
  66. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'saveAndGet', array('object' => $object, 'queryParams' => $queryParams), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  67. return $this->valueHolder1f8e2->saveAndGet($object, $queryParams);
  68. }
  69. public function setGlobal($global)
  70. {
  71. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'setGlobal', array('global' => $global), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  72. return $this->valueHolder1f8e2->setGlobal($global);
  73. }
  74. public function setExpire($expire)
  75. {
  76. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'setExpire', array('expire' => $expire), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  77. return $this->valueHolder1f8e2->setExpire($expire);
  78. }
  79. public function setCache($cache)
  80. {
  81. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'setCache', array('cache' => $cache), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  82. return $this->valueHolder1f8e2->setCache($cache);
  83. }
  84. public function getClass()
  85. {
  86. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'getClass', array(), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  87. return $this->valueHolder1f8e2->getClass();
  88. }
  89. /**
  90. * Constructor for lazy initialization
  91. *
  92. * @param \Closure|null $initializer
  93. */
  94. public static function staticProxyConstructor($initializer)
  95. {
  96. static $reflection;
  97. $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
  98. $instance = $reflection->newInstanceWithoutConstructor();
  99. unset($instance->ruta, $instance->entidad, $instance->cache, $instance->global, $instance->expire, $instance->apiConsumerService, $instance->criteriaToRequest, $instance->serializer, $instance->translator, $instance->session, $instance->crossSystemIdMapper, $instance->requestStack, $instance->eventDispatcher);
  100. $instance->initializer41009 = $initializer;
  101. return $instance;
  102. }
  103. public function __construct(\App\Services\ApiConsumerService $apiConsumerService, \App\Services\CriteriaToRequest $criteriaToRequest, \Symfony\Component\Serializer\SerializerInterface $serializer, \Symfony\Contracts\Translation\TranslatorInterface $translator, \Symfony\Component\HttpFoundation\Session\SessionInterface $session, \App\Serializer\Normalizer\CrossSystemIdMapper $crossSystemIdMapper, \Symfony\Component\HttpFoundation\RequestStack $requestStack, \Psr\EventDispatcher\EventDispatcherInterface $eventDispatcher)
  104. {
  105. static $reflection;
  106. if (! $this->valueHolder1f8e2) {
  107. $reflection = $reflection ?? new \ReflectionClass('App\\Repository\\WebServices\\NoticiaRepository');
  108. $this->valueHolder1f8e2 = $reflection->newInstanceWithoutConstructor();
  109. unset($this->ruta, $this->entidad, $this->cache, $this->global, $this->expire, $this->apiConsumerService, $this->criteriaToRequest, $this->serializer, $this->translator, $this->session, $this->crossSystemIdMapper, $this->requestStack, $this->eventDispatcher);
  110. }
  111. $this->valueHolder1f8e2->__construct($apiConsumerService, $criteriaToRequest, $serializer, $translator, $session, $crossSystemIdMapper, $requestStack, $eventDispatcher);
  112. }
  113. public function & __get($name)
  114. {
  115. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, '__get', ['name' => $name], $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  116. if (isset(self::$publicPropertiesbcbea[$name])) {
  117. return $this->valueHolder1f8e2->$name;
  118. }
  119. $realInstanceReflection = new \ReflectionClass('App\\Repository\\WebServices\\NoticiaRepository');
  120. if (! $realInstanceReflection->hasProperty($name)) {
  121. $targetObject = $this->valueHolder1f8e2;
  122. $backtrace = debug_backtrace(false, 1);
  123. trigger_error(
  124. sprintf(
  125. 'Undefined property: %s::$%s in %s on line %s',
  126. $realInstanceReflection->getName(),
  127. $name,
  128. $backtrace[0]['file'],
  129. $backtrace[0]['line']
  130. ),
  131. \E_USER_NOTICE
  132. );
  133. return $targetObject->$name;
  134. }
  135. $targetObject = $this->valueHolder1f8e2;
  136. $accessor = function & () use ($targetObject, $name) {
  137. return $targetObject->$name;
  138. };
  139. $backtrace = debug_backtrace(true, 2);
  140. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  141. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  142. $returnValue = & $accessor();
  143. return $returnValue;
  144. }
  145. public function __set($name, $value)
  146. {
  147. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  148. $realInstanceReflection = new \ReflectionClass('App\\Repository\\WebServices\\NoticiaRepository');
  149. if (! $realInstanceReflection->hasProperty($name)) {
  150. $targetObject = $this->valueHolder1f8e2;
  151. $targetObject->$name = $value;
  152. return $targetObject->$name;
  153. }
  154. $targetObject = $this->valueHolder1f8e2;
  155. $accessor = function & () use ($targetObject, $name, $value) {
  156. $targetObject->$name = $value;
  157. return $targetObject->$name;
  158. };
  159. $backtrace = debug_backtrace(true, 2);
  160. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  161. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  162. $returnValue = & $accessor();
  163. return $returnValue;
  164. }
  165. public function __isset($name)
  166. {
  167. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, '__isset', array('name' => $name), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  168. $realInstanceReflection = new \ReflectionClass('App\\Repository\\WebServices\\NoticiaRepository');
  169. if (! $realInstanceReflection->hasProperty($name)) {
  170. $targetObject = $this->valueHolder1f8e2;
  171. return isset($targetObject->$name);
  172. }
  173. $targetObject = $this->valueHolder1f8e2;
  174. $accessor = function () use ($targetObject, $name) {
  175. return isset($targetObject->$name);
  176. };
  177. $backtrace = debug_backtrace(true, 2);
  178. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  179. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  180. $returnValue = $accessor();
  181. return $returnValue;
  182. }
  183. public function __unset($name)
  184. {
  185. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, '__unset', array('name' => $name), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  186. $realInstanceReflection = new \ReflectionClass('App\\Repository\\WebServices\\NoticiaRepository');
  187. if (! $realInstanceReflection->hasProperty($name)) {
  188. $targetObject = $this->valueHolder1f8e2;
  189. unset($targetObject->$name);
  190. return;
  191. }
  192. $targetObject = $this->valueHolder1f8e2;
  193. $accessor = function () use ($targetObject, $name) {
  194. unset($targetObject->$name);
  195. return;
  196. };
  197. $backtrace = debug_backtrace(true, 2);
  198. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  199. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  200. $accessor();
  201. }
  202. public function __clone()
  203. {
  204. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, '__clone', array(), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  205. $this->valueHolder1f8e2 = clone $this->valueHolder1f8e2;
  206. }
  207. public function __sleep()
  208. {
  209. $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, '__sleep', array(), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  210. return array('valueHolder1f8e2');
  211. }
  212. public function __wakeup()
  213. {
  214. unset($this->ruta, $this->entidad, $this->cache, $this->global, $this->expire, $this->apiConsumerService, $this->criteriaToRequest, $this->serializer, $this->translator, $this->session, $this->crossSystemIdMapper, $this->requestStack, $this->eventDispatcher);
  215. }
  216. public function setProxyInitializer(?\Closure $initializer = null) : void
  217. {
  218. $this->initializer41009 = $initializer;
  219. }
  220. public function getProxyInitializer() : ?\Closure
  221. {
  222. return $this->initializer41009;
  223. }
  224. public function initializeProxy() : bool
  225. {
  226. return $this->initializer41009 && ($this->initializer41009->__invoke($valueHolder1f8e2, $this, 'initializeProxy', array(), $this->initializer41009) || 1) && $this->valueHolder1f8e2 = $valueHolder1f8e2;
  227. }
  228. public function isProxyInitialized() : bool
  229. {
  230. return null !== $this->valueHolder1f8e2;
  231. }
  232. public function getWrappedValueHolderValue()
  233. {
  234. return $this->valueHolder1f8e2;
  235. }
  236. }
  237. if (!\class_exists('NoticiaRepository_54ab26b', false)) {
  238. \class_alias(__NAMESPACE__.'\\NoticiaRepository_54ab26b', 'NoticiaRepository_54ab26b', false);
  239. }