src/Parser.php
public function consume(&$message)
    {
        if (($parsed = $this->parse($message)) === null) {
            return null;
        }

        $message = empty($parsed['tail']) ? '' : $parsed['tail'];
        return $parsed;
    }
public function consume(&$message)
    {
        if (($parsed = $this->parse($message)) === null) {
            return null;
        }

        $message = empty($parsed['tail']) ? '' : $parsed['tail'];
        return $parsed;
    }
public function consume ( & $ message ) { if ( ( $ parsed = $ this -> parse ( $ message ) ) === null ) { return null ; } $ message = empty ( $ parsed [ 'tail' ] ) ? '' : $ parsed [ 'tail' ] ; return $ parsed ; }
Implements ParserInterface::consume().

@param string $message String containing the message to parse
@return array|null Associative array containing parsed data if a
message is successfully parsed, null otherwise
@see \Phergie\Irc\ParserInterface::consume()
Implements ParserInterface :: consume () .