classElements
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 write(int &$index, int $end, int $indent, string $pending): stringAdvances past nested blocks and returns any whitespace required before the next token.
Parameters
$index | int | |
$end | int | |
$indent | int | |
$pending | string |
Returns
stringCalled from 1
Calls 9
- static-call Spacing::between() line 30
- class-const Style::Expanded() line 32
- method-call Policy::line() line 32
- method-call Policy::beforeHeader() line 32
- function-call
strlenline 32 - method-call Writer::token() line 37
- method-call Block::render() line 42
- class-const Style::Tabular() line 48
- method-call Policy::afterHeader() line 48
Private surface 4§
Implementation details, listed for orientation only.
private Document $documentprivate Writer $writerprivate Block $rendererprivate Policy $policyTest cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ElementsTestcalls
Other tests reaching this symbol 8
SettingsTestcallsFormatterTestcallsBlockTestcallsRendererTestcallsFormatterTestcallsDialectTestcallsDialectTestcallsDialectTestcalls