public function __construct(ParserInterface $parser) { $this->parser = $parser; $this->protocol = null; }