Adds a Zend\Code\Generator\MethodGenerator::copyMethodSignature method that is similar to fromReflection() but without the copying the method body and phpdoc as this is quite heavy to parse (it requires file IO, regexes, tokenization of code).
It's for example useful when creating proxies where you normally change the method body afterwards anyway. See https://github.com/Ocramius/ProxyManager/pull/393 where it increases performance.
Adds a
Zend\Code\Generator\MethodGenerator::copyMethodSignature
method that is similar tofromReflection()
but without the copying the method body and phpdoc as this is quite heavy to parse (it requires file IO, regexes, tokenization of code). It's for example useful when creating proxies where you normally change the method body afterwards anyway. See https://github.com/Ocramius/ProxyManager/pull/393 where it increases performance.