public function setEOL(string $eol = PHP_EOL): self
    {
        if (!in_array($eol, ["\n", "\r\n"])) {
            throw new ParserException('Invalid EOL character');
        }

        $this->eolChar = $eol;
        return $this;
    }