original_string: function addPlainMethod(MethodReflection $sourceMethod) {
  
          $parameters = $sourceMethod->getParameters();
          $paramArray = [];
          foreach ($parameters as $parameter) {
              $paramArray[] = '$'.$parameter->getName();
          }
  
          $paramList = implode(', ', $paramArray);
  
          $weavedMethod = MethodGenerator::fromReflection($sourceMethod);
  
          $body = sprintf(
              " return \$this->%s->%s(%s);",
              $this->implementWeaveInfo->getInstancePropertyName(),
              $sourceMethod->getName(),
              $paramList
          );
          
          $weavedMethod->setBody($body);
          $this->generator->addMethodFromGenerator($weavedMethod);
      }
code: function addPlainMethod(MethodReflection $sourceMethod) {
  
          $parameters = $sourceMethod->getParameters();
          $paramArray = [];
          foreach ($parameters as $parameter) {
              $paramArray[] = '$'.$parameter->getName();
          }
  
          $paramList = implode(', ', $paramArray);
  
          $weavedMethod = MethodGenerator::fromReflection($sourceMethod);
  
          $body = sprintf(
              " return \$this->%s->%s(%s);",
              $this->implementWeaveInfo->getInstancePropertyName(),
              $sourceMethod->getName(),
              $paramList
          );
          
          $weavedMethod->setBody($body);
          $this->generator->addMethodFromGenerator($weavedMethod);
      }
code_tokens: function addPlainMethod ( MethodReflection $ sourceMethod ) { $ parameters = $ sourceMethod -> getParameters ( ) ; $ paramArray = [ ] ; foreach ( $ parameters as $ parameter ) { $ paramArray [ ] = '$' . $ parameter -> getName ( ) ; } $ paramList = implode ( ', ' , $ paramArray ) ; $ weavedMethod = MethodGenerator :: fromReflection ( $ sourceMethod ) ; $ body = sprintf ( " return \$this->%s->%s(%s);" , $ this -> implementWeaveInfo -> getInstancePropertyName ( ) , $ sourceMethod -> getName ( ) , $ paramList ) ; $ weavedMethod -> setBody ( $ body ) ; $ this -> generator -> addMethodFromGenerator ( $ weavedMethod ) ; }
docstring: Add a call to the instance method.
  @param MethodReflection $sourceMethod
docstring_tokens: Add a call to the instance method .