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 3§

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

Other tests reaching this symbol 3

Relations§

Instantiated in 3
Type declarations 1