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

Whitespace and alignment decisions for one nested block.

Properties§

public FormatOptions $options
public int $base
public int $width

Methods§

public function __construct(public FormatOptions $options, public int $base, public int $width)

Uses a width calculated from the headers in this block only.

Parameters

$optionsFormatOptions
$baseint
$widthint
public function beforeHeader(int $length): string

Aligns the beginning of a header within this block.

Parameters

$lengthint

Returns

string
Test cases 1
Called from 2
Calls 3
public function afterHeader(int $length): string

Test cases 14§

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

Dedicated tests 4
Other tests reaching this symbol 10

Relations§

Instantiated in 1
Method calls 10
Type declarations 2