protected function consumeAll() { $rest = substr($this->content, $this->cursor); $this->cursor += strlen($rest); return $rest; }