class SourceResolver

Methods

static array|Normalized|null
normalize(mixed $value, array $normalizers)

Normalize a value with the first custom normalizer that reads it, or return null.

static array|Normalized|null
resolve(mixed $value)

Resolve a value through the fixed source handling, or return null when nothing can read it.

Details

at line 25
static array|Normalized|null normalize(mixed $value, array $normalizers)

Normalize a value with the first custom normalizer that reads it, or return null.

Null and already-normalized values never reach custom normalizers.

Parameters

mixed $value
array $normalizers

Return Value

array|Normalized|null

at line 45
static array|Normalized|null resolve(mixed $value)

Resolve a value through the fixed source handling, or return null when nothing can read it.

Parameters

mixed $value

Return Value

array|Normalized|null