Validated
in package
Internal only -- never appears in a value handed back to `Dextrin::decode()`/`decodeBinary()`'s caller.
Tracks which schema produced a materialized value, so an outer
{form: 'reference', name} check can verify identity even after
materialization has replaced the value with a plain field map that
carries no name of its own -- unlike an opaque
DXNStruct, which already carries its own name and never
needed this. Validator's materialize() (decode) and
wrapAndCheck() (encode-time validation) both wrap every
successfully-checked struct's result in one of these; strip()
removes every occurrence, recursively, once the value reaches
somewhere that isn't itself another schema check.
Table of Contents
Properties
Methods
- __construct() : mixed
- strip() : mixed
- Recursively removes every `Validated` wrapper from a decoded value tree.
Properties
$name read-only
public
string
$name
$value read-only
public
mixed
$value
Methods
__construct()
public
__construct(string $name, mixed $value) : mixed
Parameters
- $name : string
- $value : mixed
strip()
Recursively removes every `Validated` wrapper from a decoded value tree.
public
static strip(mixed $value) : mixed
Parameters
- $value : mixed