original_string: public function add(Horde_Imap_Client_Interaction_Command $cmd,
                          $top = false)
      {
          if ($top) {
              // This won't re-index keys, which may be numerical.
              $this->_commands = array($cmd->tag => $cmd) + $this->_commands;
          } else {
              $this->_commands[$cmd->tag] = $cmd;
          }
          $this->_todo[$cmd->tag] = true;
      }
code: public function add(Horde_Imap_Client_Interaction_Command $cmd,
                          $top = false)
      {
          if ($top) {
              // This won't re-index keys, which may be numerical.
              $this->_commands = array($cmd->tag => $cmd) + $this->_commands;
          } else {
              $this->_commands[$cmd->tag] = $cmd;
          }
          $this->_todo[$cmd->tag] = true;
      }
code_tokens: public function add ( Horde_Imap_Client_Interaction_Command $ cmd , $ top = false ) { if ( $ top ) { // This won't re-index keys, which may be numerical. $ this -> _commands = array ( $ cmd -> tag => $ cmd ) + $ this -> _commands ; } else { $ this -> _commands [ $ cmd -> tag ] = $ cmd ; } $ this -> _todo [ $ cmd -> tag ] = true ; }
docstring: Add a command to the pipeline.
  
  @param Horde_Imap_Client_Interaction_Command $cmd  Command object.
  @param boolean $top                                Add command to top
  of queue?
docstring_tokens: Add a command to the pipeline .