classTypeShape
final class TypeShape
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
The size and numeric precision carried by a parsed SQL type declaration.
Properties§
public string $typepublic ?int $length = nullpublic ?int $precision = nullpublic ?int $scale = nullpublic bool $autoIncrement = falseMethods§
public function __construct(
public string $type,
public ?int $length = null,
public ?int $precision = null,
public ?int $scale = null,
public bool $autoIncrement = false,
)Records the normalized type while preserving an absent length or scale.
Parameters
$type | string | |
$length | ?int | |
$precision | ?int | |
$scale | ?int | |
$autoIncrement | bool |
Test cases 36§
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 35
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsRowMaterializerTestcallsPlanGeneratorTestcallsPlanSchemaValidatorTestcallsRowGenerationTestcallsFixtureGeneratorTestcallsFixtureProviderTestcallsConstructorHydrationTestcallsPropertyHydrationTestcallsMySqlSchemaFetcherTestcallsMySqlSchemaParserTestcallsColumnParserTestcallsTableDefinitionTestcallsTypeParametersTestcallsPlatformFactoryTestcallsPostgreSqlSchemaFetcherTestcallsPostgreSqlSchemaParserTestcallsColumnParserTestcallsDefinitionListTestcallsTypeDeclarationTestcallsColumnParserTestcallsDefinitionListTestcallsTypeDeclarationTestcallsSqliteSchemaFetcherTestcallsSqliteSchemaParserTestcallsDatabaseSchemaCacheTestcallsDdlDirectoryTestcallsDdlFileTestcallsSqlSchemaProviderTestcallsMySqlSchemaParserTestcallsSchemaFetcherInterfaceTestcallsSchemaParserInterfaceTestcalls
Relations§
Instantiated in 3
- new SqlFixture\Platform\MySql\Schema\TypeParameters::parse() packages/sql-fixture/src/Platform/MySql/Schema/TypeParameters.php:60
- new SqlFixture\Platform\PostgreSql\Schema\TypeDeclaration::parse() packages/sql-fixture/src/Platform/PostgreSql/Schema/TypeDeclaration.php:91
- new SqlFixture\Platform\Sqlite\Schema\TypeDeclaration::parse() packages/sql-fixture/src/Platform/Sqlite/Schema/TypeDeclaration.php:45
Type declarations 3
- type SqlFixture\Platform\MySql\Schema\TypeParameters packages/sql-fixture/src/Platform/MySql/Schema/TypeParameters.php:44
- type SqlFixture\Platform\PostgreSql\Schema\TypeDeclaration packages/sql-fixture/src/Platform/PostgreSql/Schema/TypeDeclaration.php:53
- type SqlFixture\Platform\Sqlite\Schema\TypeDeclaration packages/sql-fixture/src/Platform/Sqlite/Schema/TypeDeclaration.php:29