public function setParser($parser)
    {
        $parser = (string) $parser;

        if ($this->exists() && $this->parser !== $parser) {
            $this->updated['parser'] = true;
        }

        $this->parser = $parser;

        return $this;
    }