[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/ -> MethodGenerator.php (source)

   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace ProxyManager\Generator;
   6  
   7  use Zend\Code\Generator\MethodGenerator as ZendMethodGenerator;
   8  use Zend\Code\Reflection\MethodReflection;
   9  
  10  /**
  11   * Method generator that fixes minor quirks in ZF2's method generator
  12   *
  13   * @author Marco Pivetta <ocramius@gmail.com>
  14   * @license MIT
  15   */
  16  class MethodGenerator extends ZendMethodGenerator
  17  {
  18      /**
  19       * {@inheritDoc}
  20       */
  21      public static function fromReflectionWithoutBodyAndDocBlock(MethodReflection $reflectionMethod) : self
  22      {
  23          /* @var $method self */
  24          $method = parent::copyMethodSignature($reflectionMethod);
  25  
  26          $method->setInterface(false);
  27  
  28          return $method;
  29      }
  30  }


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