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

Validates the documented catalog settings and resolves their filesystem paths.

Methods§

public static function options(stdClass $data, string $directory): array<string, list<string>>

CLI-shaped defaults, with paths based at the configuration directory.

Parameters

$datastdClass
$directorystring

Returns

array<string, list<string>>

Throws

InvalidConfigurationException When a setting has an unknown name or invalid value
Test cases 2
Called from 1
Calls 11
public static function models(stdClass $data): array<string, string>

Named function models must be strings identifying autoloadable callables or invokable classes.

Parameters

$datastdClass

Returns

array<string, string>

Throws

InvalidConfigurationException When the registrations are not a mapping of names to strings
Test cases 2
Called from 1
Calls 4
public static function absolute(string $path, string $directory): string

An absolute path stays unchanged; a relative one starts beside the configuration.

Parameters

$pathstring
$directorystring

Returns

string
Test cases 1
Called from 1
Calls 2

Private surface 2§

Implementation details, listed for orientation only.

private const LIST_OPTIONS = ['paths', 'extensions', 'exclude', 'namespace', 'method', 'path', 'kind', 'tabl…
private const SCALAR_OPTIONS = ['output', 'reporter', 'root', 'fail-on', 'severity']

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§

Static calls 2