DXNSchemaMaterializingProvider
extends
DXNSchemaProvider
in
A {@see DXNSchemaProvider} that additionally supplies a materializer -- how to turn an already-schema-validated field map into whatever decoded shape the provider's own class prefers. Without this, a provider's schema decodes to the default plain field array.
Table of Contents
Methods
- dxnClass() : class-string
- The PHP class {@see self::dxnSchemaName()}'s schema is associated with, for `{form: 'reference', name}` checks during encode-time validation.
- dxnMaterialize() : mixed
- dxnSchema() : string
- This provider's own `.dxns` source -- every named type and every `%schema{}` entry it defines gets compiled in, not only {@see self::dxnSchemaName()}'s own entry.
- dxnSchemaName() : string
- Which `%schema{}` entry in {@see self::dxnSchema()}'s own document this provider is for.
Methods
dxnClass()
The PHP class {@see self::dxnSchemaName()}'s schema is associated with, for `{form: 'reference', name}` checks during encode-time validation.
public
dxnClass() : class-string
Return values
class-stringdxnMaterialize()
public
dxnMaterialize(array<string, mixed> $resolved) : mixed
Parameters
- $resolved : array<string, mixed>
dxnSchema()
This provider's own `.dxns` source -- every named type and every `%schema{}` entry it defines gets compiled in, not only {@see self::dxnSchemaName()}'s own entry.
public
dxnSchema() : string
Return values
stringdxnSchemaName()
Which `%schema{}` entry in {@see self::dxnSchema()}'s own document this provider is for.
public
dxnSchemaName() : string