function addExecuteAsyncMethod() {
        $body  = $this->generateCreateFragment();
        $body .= 'return $this->dispatchAsync($request, $callable);';

        $docBlock = new DocBlockGenerator('Execute the operation asynchronously, passing the parsed response to the callback', null);
        $tags[] = new GenericTag('return', '\Amp\Promise');
        $docBlock->setTags($tags);

        $callableParamGenerator = new ParameterGenerator('callable', 'callable');
        $methodGenerator = new MethodGenerator('executeAsync');
        $methodGenerator->setBody($body);
        $methodGenerator->setDocBlock($docBlock);
        $methodGenerator->setParameters([$callableParamGenerator]);

        $this->classGenerator->addMethodFromGenerator($methodGenerator);
    }
function addExecuteAsyncMethod() {
        $body  = $this->generateCreateFragment();
        $body .= 'return $this->dispatchAsync($request, $callable);';

        $docBlock = new DocBlockGenerator('Execute the operation asynchronously, passing the parsed response to the callback', null);
        $tags[] = new GenericTag('return', '\Amp\Promise');
        $docBlock->setTags($tags);

        $callableParamGenerator = new ParameterGenerator('callable', 'callable');
        $methodGenerator = new MethodGenerator('executeAsync');
        $methodGenerator->setBody($body);
        $methodGenerator->setDocBlock($docBlock);
        $methodGenerator->setParameters([$callableParamGenerator]);

        $this->classGenerator->addMethodFromGenerator($methodGenerator);
    }
function addExecuteAsyncMethod ( ) { $ body = $ this -> generateCreateFragment ( ) ; $ body .= 'return $this->dispatchAsync($request, $callable);' ; $ docBlock = new DocBlockGenerator ( 'Execute the operation asynchronously, passing the parsed response to the callback' , null ) ; $ tags [ ] = new GenericTag ( 'return' , '\Amp\Promise' ) ; $ docBlock -> setTags ( $ tags ) ; $ callableParamGenerator = new ParameterGenerator ( 'callable' , 'callable' ) ; $ methodGenerator = new MethodGenerator ( 'executeAsync' ) ; $ methodGenerator -> setBody ( $ body ) ; $ methodGenerator -> setDocBlock ( $ docBlock ) ; $ methodGenerator -> setParameters ( [ $ callableParamGenerator ] ) ; $ this -> classGenerator -> addMethodFromGenerator ( $ methodGenerator ) ; }
Add the async execute method to the operation
Add the async execute method to the operation