public function set($path)
	{
		if (! is_string($path)) {
			throw new \InvalidArgumentException();
		}
		if ($path === '') {
			$this->setParts([]);
		} else {
			$this->setParts(explode('/', $path));
		}
		return $this;
	}
public function set($path)
	{
		if (! is_string($path)) {
			throw new \InvalidArgumentException();
		}
		if ($path === '') {
			$this->setParts([]);
		} else {
			$this->setParts(explode('/', $path));
		}
		return $this;
	}
public function set ( $ path ) { if ( ! is_string ( $ path ) ) { throw new \ InvalidArgumentException ( ) ; } if ( $ path === '' ) { $ this -> setParts ( [ ] ) ; } else { $ this -> setParts ( explode ( '/' , $ path ) ) ; } return $ this ; }
Set the path.

@param string $path
@throws \InvalidArgumentException
@return self
Set the path .