[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/ocramius/proxy-manager/src/ProxyManager/Proxy/ -> AccessInterceptorInterface.php (source)

   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace ProxyManager\Proxy;
   6  
   7  /**
   8   * Access interceptor object marker
   9   *
  10   * @author Marco Pivetta <ocramius@gmail.com>
  11   * @license MIT
  12   */
  13  interface AccessInterceptorInterface extends ProxyInterface
  14  {
  15      /**
  16       * Set or remove the prefix interceptor for a method
  17       *
  18       * @link https://github.com/Ocramius/ProxyManager/blob/master/docs/access-interceptor-value-holder.md
  19       *
  20       * A prefix interceptor should have a signature like following:
  21       *
  22       * <code>
  23       * $interceptor = function ($proxy, $instance, string $method, array $params, & $returnEarly) {};
  24       * </code>
  25       *
  26       * @param string        $methodName        name of the intercepted method
  27       * @param \Closure|null $prefixInterceptor interceptor closure or null to unset the currently active interceptor
  28       *
  29       * @return void
  30       */
  31      public function setMethodPrefixInterceptor(string $methodName, \Closure $prefixInterceptor = null);
  32  
  33      /**
  34       * Set or remove the suffix interceptor for a method
  35       *
  36       * @link https://github.com/Ocramius/ProxyManager/blob/master/docs/access-interceptor-value-holder.md
  37       *
  38       * A prefix interceptor should have a signature like following:
  39       *
  40       * <code>
  41       * $interceptor = function ($proxy, $instance, string $method, array $params, $returnValue, & $returnEarly) {};
  42       * </code>
  43       *
  44       * @param string        $methodName        name of the intercepted method
  45       * @param \Closure|null $suffixInterceptor interceptor closure or null to unset the currently active interceptor
  46       *
  47       * @return void
  48       */
  49      public function setMethodSuffixInterceptor(string $methodName, \Closure $suffixInterceptor = null);
  50  }


Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1