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;
    }
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;
    }
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 ; }
Set the character to use for line endings.

@param string $lineEnding The character to use for line endings

@return static
Set the character to use for line endings .