final class AnalysisOptions
Public API: explicitly declared with @visibility public.

What one analysis run is asked to do.

Analyzing with only the Doctrine calls recogniseddoctest
$options = new \SqlCatalog\Facade\AnalysisOptions(['doctrine']);
    $options->extensions // => ['doctrine']

Properties§

public list<string> $extensions = ['pdo', 'mysqli']
public EvaluationBudget|null $budget = null
public string|null $dialect = null

Methods§

public function __construct(
    public list<string> $extensions = ['pdo', 'mysqli'],
    public EvaluationBudget|null $budget = null,
    public string|null $dialect = null,
)

Parameters

$extensionslist<string>The extensions whose database calls are recognised
$budgetEvaluationBudget|nullHow much work one file may cost, or null for the default
$dialectstring|nullThe framework SQL grammar, or null when not configured
public function withExtensions(list<string> $extensions): self

The same options with a different set of extensions.

Parameters

$extensionslist<string>

Returns

self
Test cases 2
Calls 1

Test cases 51§

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

Dedicated tests 5
Other tests reaching this symbol 46

Relations§

Instantiated in 2
Method calls 1
Type declarations 3