classRenderer
final class Renderer
Restricted visibility: declared "@visibility SqlFormatter". Code outside that scope must not name this declaration.
Applies one layout to grammar-derived clauses, lists, and nested blocks.
Methods§
public function __construct(private Document $document, private FormatOptions $options)Starts a fresh output buffer for the supplied document.
Parameters
$document | Document | |
$options | FormatOptions |
public function render(): stringWrites a complete document and its final comments.
Returns
stringTest cases 3
Called from 1
Calls 4
- method-call Block::render() line 32
- new Block line 32
- function-call
countline 32 - method-call Writer::finish() line 33
Private surface 3§
Implementation details, listed for orientation only.
private Writer $writerprivate Document $documentprivate 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
Other tests reaching this symbol 8
SettingsTestcallsFormatterTestcallsBlockTest::testRenderFormatsNestedBlockscallsElementsTest::testWriteFormatsCaseBranchescallsFormatterTestcallsDialectTestcallsDialectTestcallsDialectTestcalls