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 16§
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 15
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsRowMaterializerTestcallsPlanGeneratorTestcallsRowGenerationTestcallsRowGeneratorTest::testGenerateDelegatesObjectHydrationcallsRowGeneratorTest::testGenerateUsesInjectedMappingAndPreservesOverridescallsConstructorHydrationTestcallsPropertyHydrationTestcallsReflectionHydratorTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureGeneratorTestcallsFixtureProviderTestcallsSqlSchemaProviderTestcalls
Relations§
Method calls 1
Type declarations 7
- type SqlFixture\Fixture\RowGenerator packages/sql-fixture/src/Fixture/RowGenerator.php:23
- type SqlFixture\Provider\DatabaseFixtureProvider packages/sql-fixture/src/Provider/DatabaseFixtureProvider.php:56
- type SqlFixture\Provider\FileFixtureProvider packages/sql-fixture/src/Provider/FileFixtureProvider.php:45
- type SqlFixture\Provider\FixtureGenerator packages/sql-fixture/src/Provider/FixtureGenerator.php:23
- type SqlFixture\Provider\FixtureGenerator packages/sql-fixture/src/Provider/FixtureGenerator.php:32
- type SqlFixture\Provider\FixtureGenerator packages/sql-fixture/src/Provider/FixtureGenerator.php:76
- type SqlFixture\Provider\FixtureProvider packages/sql-fixture/src/Provider/FixtureProvider.php:61