LdapTools\Configuration::setSchemaFormat PHP Method

setSchemaFormat() public method

Set the schema definition format.
public setSchemaFormat ( $type )
$type string The schema type (ie. yml).
    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;
    }