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

Emits expressions and delegates nested query and CASE blocks to the renderer.

Methods§

public function __construct(
    private Document $document,
    private Writer $writer,
    private Block $renderer,
    private Policy $policy,
)

Shares the output buffer while retaining the enclosing block's layout policy.

Parameters

$documentDocument
$writerWriter
$rendererBlock
$policyPolicy
public function write(int &$index, int $end, int $indent, string $pending): string

Advances past nested blocks and returns any whitespace required before the next token.

Parameters

$indexint
$endint
$indentint
$pendingstring

Returns

string
Called from 1
Calls 9

Private surface 4§

Implementation details, listed for orientation only.

private Document $document
private Writer $writer
private Block $renderer
private Policy $policy

Test cases 9§

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 8

Relations§

Instantiated in 1
Method calls 1