public function setOptions($options)
{
$this->options = ['config_dir' => null, 'cache_dir' => null, 'debug' => false, 'cache_class' => 'WebspaceCollectionCache', 'base_class' => 'WebspaceCollection'];
// overwrite the default values with the given options
$this->options = array_merge($this->options, $options);
}