private function addSchema($collectionName, $schemaName, $schema)
{
if (!is_string($schema) && !$schema instanceof SchemaDefinitionInterface) {
throw new InvalidSchemaDefinitionException();
}
$this->schemaCollections[$collectionName][$schemaName] = $schema;
}