classResultColumn
final class ResultColumn
Driver-reported metadata for one result-set column.
Properties§
public string $namepublic ColumnDeclaration $typeMethods§
public function __construct(public string $name, public ColumnDeclaration $type)Binds the instance to what it will work from.
Parameters
$name | string | |
$type | ColumnDeclaration |
Test cases 1
Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ResultColumnTest::testCarriesNameAndTypecovers and calls
Other tests reaching this symbol 8
ResultSetTest::testCarriesEmptyRowsAndColumnsIndependentlycallsStatementInterfaceTest::testResultColumnsRemainAvailableForAResultWithNoRowscallsResultSelectRunnerTest::testReadResultSetReadsMetadataBeforeRowscallsResultSelectRunnerTest::testRunResultSetRetainsColumnsWhenRowsAreEmptycallsResultSetMutationTest::testApplyResultSetGivesTheNewTableTheColumnsTheResultDescribedcallsCreateTableAsSelectMutationTest::testApplyResultSetCreatesEmptyTableFromMetadatacallsCreateTableAsSelectMutationTest::testApplyResultSetKeepsExplicitColumnNamesWithMetadataTypescallsCreateTableAsSelectMutationTest::testApplyResultSetUsesMetadataTypesInsteadOfTextFallbackcalls