public function setPathBuilder($pathBuilder, array $options = []) {
		if (is_string($pathBuilder)) {
			$this->_pathBuilder = $this->createPathBuilder($pathBuilder, $options);

			return;
		}

		if (!$pathBuilder instanceof PathBuilderInterface) {
			throw new InvalidArgumentException(sprintf('The first arg does not implement %s', PathBuilderInterface::class));
		}

		$this->_pathBuilder = $pathBuilder;
	}
public function setPathBuilder($pathBuilder, array $options = []) {
		if (is_string($pathBuilder)) {
			$this->_pathBuilder = $this->createPathBuilder($pathBuilder, $options);

			return;
		}

		if (!$pathBuilder instanceof PathBuilderInterface) {
			throw new InvalidArgumentException(sprintf('The first arg does not implement %s', PathBuilderInterface::class));
		}

		$this->_pathBuilder = $pathBuilder;
	}
public function setPathBuilder ( $ pathBuilder , array $ options = [ ] ) { if ( is_string ( $ pathBuilder ) ) { $ this -> _pathBuilder = $ this -> createPathBuilder ( $ pathBuilder , $ options ) ; return ; } if ( ! $ pathBuilder instanceof PathBuilderInterface ) { throw new InvalidArgumentException ( sprintf ( 'The first arg does not implement %s' , PathBuilderInterface :: class ) ) ; } $ this -> _pathBuilder = $ pathBuilder ; }
Sets a path builder.

@param string|\Burzum\FileStorage\Storage\PathBuilder\PathBuilderInterface $pathBuilder
@param array Path builder options.
@return void
Sets a path builder .