GDS\Store::determineSchema PHP Method

determineSchema() private method

Set up the Schema for the current data model, based on the provided Kind/Schema/buildSchema
private determineSchema ( Schema | string | null $mix_schema ) : Schema
$mix_schema Schema | string | null
return Schema
    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.');
    }