classBlock
final class Block
Restricted visibility: declared "@visibility SqlFormatter". Code outside that scope must not name this declaration.
Renders a nested token range with independent clause alignment.
Methods§
public function __construct(
private Document $document,
private Writer $writer,
private FormatOptions $options,
)Shares the immutable options and the document output buffer.
Parameters
$document | Document | |
$writer | Writer | |
$options | FormatOptions |
public function render(int $start, int $end, int $base): voidRenders a block; nested elements call back with their own indentation scope.
Parameters
$start | int | |
$end | int | |
$base | int |
Called from 2
Calls 10
- new Headers line 29
- new Policy line 30
- method-call Headers::width() line 30
- new Elements line 31
- method-call Policy::line() line 33
- method-call Headers::write() line 37
- method-call Policy::bodyIndent() line 38
- method-call Policy::afterHeader() line 39
- method-call Headers::length() line 39
- method-call Elements::write() line 43
Private surface 3§
Implementation details, listed for orientation only.
private Document $documentprivate Writer $writerprivate FormatOptions $optionsTest cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
BlockTestcalls
Other tests reaching this symbol 8
SettingsTestcallsFormatterTestcallsElementsTestcallsRendererTestcallsFormatterTestcallsDialectTestcallsDialectTestcallsDialectTestcalls