original_string: public function complete(Horde_Imap_Client_Interaction_Server_Tagged $resp)
      {
          if (isset($this->_commands[$resp->tag])) {
              $cmd = $this->_commands[$resp->tag];
              $cmd->response = $resp;
              unset($this->_todo[$resp->tag]);
          } else {
              /* This can be reached if a previous pipeline action was aborted,
               * e.g. via an Exception. */
              $cmd = null;
          }
  
          return $cmd;
      }
code: public function complete(Horde_Imap_Client_Interaction_Server_Tagged $resp)
      {
          if (isset($this->_commands[$resp->tag])) {
              $cmd = $this->_commands[$resp->tag];
              $cmd->response = $resp;
              unset($this->_todo[$resp->tag]);
          } else {
              /* This can be reached if a previous pipeline action was aborted,
               * e.g. via an Exception. */
              $cmd = null;
          }
  
          return $cmd;
      }
code_tokens: public function complete ( Horde_Imap_Client_Interaction_Server_Tagged $ resp ) { if ( isset ( $ this -> _commands [ $ resp -> tag ] ) ) { $ cmd = $ this -> _commands [ $ resp -> tag ] ; $ cmd -> response = $ resp ; unset ( $ this -> _todo [ $ resp -> tag ] ) ; } else { /* This can be reached if a previous pipeline action was aborted,
               * e.g. via an Exception. */ $ cmd = null ; } return $ cmd ; }
docstring: Mark a command as completed.
  
  @param Horde_Imap_Client_Interaction_Server_Tagged $resp  Tagged server
  response.
  
  @return Horde_Imap_Client_Interaction_Command  Command that was
  completed. Returns null
  if tagged response
  is not contained in this
  pipeline object.
docstring_tokens: Mark a command as completed .