interface HydratorInterface

Hydrates generated row values into a requested object type.

Methods§

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

Hydrate data into an object of the given class.

Parameters

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

Returns

T
Called from 1

Test cases 14§

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

Dedicated tests 1
Other tests reaching this symbol 13

Relations§

Implemented by 1
Method calls 1
Type declarations 6