public function setPath($path): void
    {
        if (!is_dir($path)) {
            throw new ConfigException('Configuration directory is not exists');
        }
        $this->path = rtrim($path, '/');
    }
public function setPath($path): void
    {
        if (!is_dir($path)) {
            throw new ConfigException('Configuration directory is not exists');
        }
        $this->path = rtrim($path, '/');
    }
public function setPath ( $ path ) : void { if ( ! is_dir ( $ path ) ) { throw new ConfigException ( 'Configuration directory is not exists' ) ; } $ this -> path = rtrim ( $ path , '/' ) ; }
Set path to configuration files

@param  string $path

@return void
@throws ConfigException
Set path to configuration files