public function setLineEnding($lineEnding)
    {
        if (!is_string($lineEnding) || strlen($lineEnding) < 1) {
            throw new \InvalidArgumentException("Invalid line ending specified, must be a string at least 1 character long");
        }

        $this->lineEnding = $lineEnding;

        return $this;
    }