interfaceHydratorInterface
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): THydrate data into an object of the given class.
Parameters
$data | array<string, mixed> | |
$className | class-string<T> |
Returns
TThrows
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
HydratorInterfaceTestcalls
Other tests reaching this symbol 13
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsRowMaterializerTestcallsPlanGeneratorTestcallsRowGenerationTestcallsFixtureGeneratorTestcallsFixtureProviderTestcallsConstructorHydrationTestcallsPropertyHydrationTestcallsReflectionHydratorTestcallsSqlSchemaProviderTestcalls
Relations§
Method calls 1
Type declarations 6
- type SqlFixture\DatabaseFixtureProvider packages/sql-fixture/src/DatabaseFixtureProvider.php:43
- type SqlFixture\FileFixtureProvider packages/sql-fixture/src/FileFixtureProvider.php:34
- type SqlFixture\FixtureGenerator packages/sql-fixture/src/FixtureGenerator.php:22
- type SqlFixture\FixtureGenerator packages/sql-fixture/src/FixtureGenerator.php:31
- type SqlFixture\FixtureGenerator packages/sql-fixture/src/FixtureGenerator.php:98
- type SqlFixture\FixtureProvider packages/sql-fixture/src/FixtureProvider.php:47