todo v3.0, add optional object/data to extract/hydrate.
package Default

 Methods

Converts the given value so that it can be extracted by the hydrator.

extract(mixed $value) : mixed

Parameters

$value

mixed

The original value.

Returns

mixedReturns the value that should be extracted.

Converts the given value so that it can be hydrated by the hydrator.

hydrate(mixed $value) : mixed

Parameters

$value

mixed

The original value.

Returns

mixedReturns the value that should be hydrated.