public static function create(Horde_Imap_Client_Tokenize $t)
    {
        $t->rewind();
        $tag = $t->next();
        $t->next();

        switch ($tag) {
        case '+':
            return new Horde_Imap_Client_Interaction_Server_Continuation($t);

        case '*':
            return new Horde_Imap_Client_Interaction_Server_Untagged($t);

        default:
            return new Horde_Imap_Client_Interaction_Server_Tagged($t, $tag);
        }
    }
public static function create(Horde_Imap_Client_Tokenize $t)
    {
        $t->rewind();
        $tag = $t->next();
        $t->next();

        switch ($tag) {
        case '+':
            return new Horde_Imap_Client_Interaction_Server_Continuation($t);

        case '*':
            return new Horde_Imap_Client_Interaction_Server_Untagged($t);

        default:
            return new Horde_Imap_Client_Interaction_Server_Tagged($t, $tag);
        }
    }
public static function create ( Horde_Imap_Client_Tokenize $ t ) { $ t -> rewind ( ) ; $ tag = $ t -> next ( ) ; $ t -> next ( ) ; switch ( $ tag ) { case '+' : return new Horde_Imap_Client_Interaction_Server_Continuation ( $ t ) ; case '*' : return new Horde_Imap_Client_Interaction_Server_Untagged ( $ t ) ; default : return new Horde_Imap_Client_Interaction_Server_Tagged ( $ t , $ tag ) ; } }
Auto-scan an incoming line to determine the response type.

@param Horde_Imap_Client_Tokenize $t  Tokenized data returned from the
server.

@return Horde_Imap_Client_Interaction_Server  A server response object.
Auto - scan an incoming line to determine the response type .