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

What the command was asked to do.

Properties§

public list<string> $paths = []
public string|null $output = null
public string $reporter = 'text'
public list<string> $extensions = ['pdo', 'mysqli']
public CatalogFilter $filter = new \SqlCatalog\Core\Filter\CatalogFilter()
public list<string> $excluded = []
public string $root = '.'
public Severity|null $failOn = null
public bool $help = false
public bool $listExtensions = false
public bool $listReporters = false
public string|null $config = null
public Configuration $configuration = new \SqlCatalog\Facade\Configuration()
public string|null $dialect = null

Methods§

public function __construct(
    public list<string> $paths = [],
    public string|null $output = null,
    public string $reporter = 'text',
    public list<string> $extensions = ['pdo', 'mysqli'],
    public CatalogFilter $filter = new \SqlCatalog\Core\Filter\CatalogFilter(),
    public list<string> $excluded = [],
    public string $root = '.',
    public Severity|null $failOn = null,
    public bool $help = false,
    public bool $listExtensions = false,
    public bool $listReporters = false,
    public string|null $config = null,
    public Configuration $configuration = new \SqlCatalog\Facade\Configuration(),
    public string|null $dialect = null,
)

Parameters

$pathslist<string>The files and directories to analyze
$outputstring|nullThe directory to write the report into, or null for standard output
$reporterstringThe reporter to render with
$extensionslist<string>The extensions whose database calls are recognised
$filterCatalogFilterWhich of the statements found to keep
$excludedlist<string>Patterns of source files to skip
$rootstringThe directory reported paths are relative to
$failOnSeverity|nullThe severity that makes the run report a failure
$helpboolWhether the command was asked for its help
$listExtensionsboolWhether the command was asked to list its extensions
$listReportersboolWhether the command was asked to list its reporters
$configstring|nullThe catalog YAML file selected for this run
$configurationConfiguration
$dialectstring|nullThe SQL grammar used by framework builders
Calls 2
public function isQuery(): bool

Whether the command was asked for information rather than for an analysis.

Returns

bool
Test cases 1

Test cases 9§

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

Dedicated tests 3
Other tests reaching this symbol 6

Relations§

Instantiated in 1
Type declarations 6