for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ProxyManager\Generator;
use Zend\Code\Generator\MethodGenerator as ZendMethodGenerator;
use Zend\Code\Reflection\MethodReflection;
/**
* Method generator that fixes minor quirks in ZF2's method generator
*
* @author Marco Pivetta <[email protected]>
* @license MIT
*/
class MethodGenerator extends ZendMethodGenerator
{
* {@inheritDoc}
public static function fromReflection(MethodReflection $reflectionMethod) : self
/* @var $method self */
$method = parent::fromReflection($reflectionMethod);
$method->setInterface(false);
return $method;
}