src/Core/Client.php
public function addBatchRequest(ClientRequestInterface $request)
    {
        if ($request instanceof ContextAwareInterface) {
            $request->setContextIfNull($this->getConfig()->getContext());
        }
        $this->batchRequests[] = $request;
        return $this;
    }
public function addBatchRequest(ClientRequestInterface $request)
    {
        if ($request instanceof ContextAwareInterface) {
            $request->setContextIfNull($this->getConfig()->getContext());
        }
        $this->batchRequests[] = $request;
        return $this;
    }
public function addBatchRequest ( ClientRequestInterface $ request ) { if ( $ request instanceof ContextAwareInterface ) { $ request -> setContextIfNull ( $ this -> getConfig ( ) -> getContext ( ) ) ; } $ this -> batchRequests [ ] = $ request ; return $ this ; }
Adds a request to the batch execution queue
@param ClientRequestInterface $request
@return $this
Adds a request to the batch execution queue