示例#1
0
 /**
  * Add method from MethodGenerator
  *
  * @param  Zend\Code\Generator\MethodGenerator $method
  * @return Magento_Di_Generator_CodeGenerator_Zend
  * @throws InvalidArgumentException
  */
 public function addMethodFromGenerator(Zend\Code\Generator\MethodGenerator $method)
 {
     if (!is_string($method->getName())) {
         throw new InvalidArgumentException('addMethodFromGenerator() expects string for name');
     }
     return parent::addMethodFromGenerator($method);
 }