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

Measures and emits headers without looking inside nested query blocks.

Methods§

public function __construct(private Document $document)

Reads annotations from the concrete syntax tree.

Parameters

$documentDocument
public function width(int $start, int $end): int

Finds the widest header at this parenthesis level.

Parameters

$startint
$endint

Returns

int
Test cases 1
Called from 1
Calls 2
public function length(int $start, int $end): int
public function write(Writer $writer, int $start, int $end, Policy $policy): void

Emits a complete multiword header, keeping interleaved comments.

Parameters

$writerWriter
$startint
$endint
$policyPolicy
Test cases 1
Called from 1
Calls 3

Private surface 1§

Implementation details, listed for orientation only.

private Document $document

Test cases 12§

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

Dedicated tests 3
Other tests reaching this symbol 9

Relations§

Instantiated in 1
Method calls 3