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

Catalog settings read from a YAML document.

Properties§

public array<string, list<string>> $options = []
public array<string, string> $functionModels = []
public string|null $file = null

Methods§

public function __construct(
    public array<string, list<string>> $options = [],
    public array<string, string> $functionModels = [],
    public string|null $file = null,
)

Parameters

$optionsarray<string, list<string>>Validated command defaults, including source paths
$functionModelsarray<string, string>Function names mapped to autoloadable model callables
$filestring|nullThe configuration's filename, or null for empty defaults
public static function load(string $path): self

Reads a catalog configuration without executing it as PHP.

Parameters

$pathstring

Returns

self

Throws

InvalidConfigurationException When the file or its settings are invalid
Test cases 4
Called from 2
Calls 13
public function apply(Registry $models): Registry

Adds configured models to a copy of an analyzer's current registry.

Parameters

$modelsRegistry

Returns

Throws

RuntimeException When a configured model cannot be resolved
Test cases 1
Called from 1
Calls 1

Test cases 9§

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 4

Relations§

Instantiated in 4
Static calls 2
Method calls 1
Type declarations 5