final class Piece
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

One lexical unit of rendered SQL.

Properties§

public PieceKind $kind
public string $text
public bool $glued = false
public string|null $gap = null

Methods§

public function __construct(
    public PieceKind $kind,
    public string $text,
    public bool $glued = false,
    public string|null $gap = null,
)

Parameters

$kindPieceKindWhat the piece is
$textstringThe exact spelling
$gluedboolWhether the piece follows the previous one without a separating space
$gapstring|nullThe exact trivia written before the piece, from a layout; null for the regular spacing

Test cases 16§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 14

Relations§

Instantiated in 3
Type declarations 1