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 $type
public ?int $length = null
public ?int $precision = null
public ?int $scale = null
public bool $autoIncrement = false

Methods§

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

$typestring
$length?int
$precision?int
$scale?int
$autoIncrementbool

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

Relations§

Instantiated in 3
Type declarations 3