final class ReflectionHydrator
    implements HydratorInterface

Hydrates rows through constructor parameters or existing object properties.

Methods§

public function hydrate<T of object>(array<string, mixed> $data, class-string<T> $className): T

Parameters

$dataarray<string, mixed>
$classNameclass-string<T>

Returns

T

Throws

ReflectionException When the requested object cannot be reflected or instantiated
Test cases 43
Calls 8

Test cases 54§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 39
Other tests reaching this symbol 15

Relations§

Instantiated in 1