public function setSchemaFormat($type)
{
if (!defined('\\LdapTools\\Factory\\SchemaParserFactory::TYPE_' . strtoupper($type))) {
throw new ConfigurationException(sprintf('Unknown schema format "%s".', $type));
}
$this->config['schemaFormat'] = $type;
return $this;
}