php-dextrin

DXNSchemaMaterializingProvider extends DXNSchemaProvider

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-string

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
string

dxnSchemaName()

Which `%schema{}` entry in {@see self::dxnSchema()}'s own document this provider is for.

public dxnSchemaName() : string
Return values
string
On this page

Search results