interface SchemaModelInterface (View source)

Implementors of this interface can be models that generate types and operations

Methods

static string
getIdentifier()

No description

bool
hasField(string $fieldName)

No description

ModelField|null
getField(string $fieldName, array $config = [])

No description

string
getTypeName()

No description

getDefaultResolver(array|null $context = [])

No description

string
getSourceClass()

No description

array
getAllFields()

No description

ModelType|null
getModelTypeForField(string $fieldName)

No description

getSchemaConfig()

No description

ModelConfiguration|null
getModelConfiguration()

No description

string
getPropertyForField(string $field)

No description

Details

static string getIdentifier()

Return Value

string

bool hasField(string $fieldName)

Parameters

string $fieldName

Return Value

bool

ModelField|null getField(string $fieldName, array $config = [])

Parameters

string $fieldName
array $config

Return Value

ModelField|null

string getTypeName()

Return Value

string

ResolverReference getDefaultResolver(array|null $context = [])

Parameters

array|null $context

Return Value

ResolverReference

string getSourceClass()

Return Value

string

array getAllFields()

Return Value

array

ModelType|null getModelTypeForField(string $fieldName)

Parameters

string $fieldName

Return Value

ModelType|null

SchemaConfig getSchemaConfig()

Return Value

SchemaConfig

ModelConfiguration|null getModelConfiguration()

Return Value

ModelConfiguration|null

string getPropertyForField(string $field)

Parameters

string $field

Return Value

string