private function determineSchema($mix_schema)
{
if (null === $mix_schema) {
$mix_schema = $this->buildSchema();
}
if ($mix_schema instanceof Schema) {
return $mix_schema;
}
if (is_string($mix_schema)) {
return new Schema($mix_schema);
}
throw new \Exception('You must provide a Schema or Kind. Alternatively, you can extend GDS\\Store and implement the buildSchema() method.');
}