src/Parser.php
public function consumeAll(&$message)
    {
        $parsed = $this->parseAll($message);
        if ($parsed) {
            $last = end($parsed);
            $message = empty($last['tail']) ? '' : $last['tail'];
        }
        return $parsed;
    }
public function consumeAll(&$message)
    {
        $parsed = $this->parseAll($message);
        if ($parsed) {
            $last = end($parsed);
            $message = empty($last['tail']) ? '' : $last['tail'];
        }
        return $parsed;
    }
Implements ParserInterface::consumeAll().

@param string $message String containing the message to parse
@return array Enumerated array of associative arrays each containing
parsed data for a single message if any messages are
successfully parsed, an empty array otherwise
@see \Phergie\Irc\ParserInterface::consumeAll()