protected function _setPathSegmentSeparator($separator)
    {
        if (
            !($separator instanceof Stringable) &&
            !is_string($separator) &&
            !is_null($separator)
        ) {
            throw $this->_createInvalidArgumentException($this->__('Invalid path segment separator'), null, null, $separator);
        }

        $this->pathSegmentSeparator = $separator;
    }
protected function _setPathSegmentSeparator($separator)
    {
        if (
            !($separator instanceof Stringable) &&
            !is_string($separator) &&
            !is_null($separator)
        ) {
            throw $this->_createInvalidArgumentException($this->__('Invalid path segment separator'), null, null, $separator);
        }

        $this->pathSegmentSeparator = $separator;
    }
protected function _setPathSegmentSeparator ( $ separator ) { if ( ! ( $ separator instanceof Stringable ) && ! is_string ( $ separator ) && ! is_null ( $ separator ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Invalid path segment separator' ) , null , null , $ separator ) ; } $ this -> pathSegmentSeparator = $ separator ; }
Assigns the separator of segments in a string path.

@since [*next-version*]

@param string|Stringable|null $separator The separator.

@throws InvalidArgumentException If the separator is invalid.
Assigns the separator of segments in a string path .