classConfiguration
final class Configuration
Public API: explicitly declared with
@visibility public.Validated command settings, independent of the preparation and evaluation layers.
\Deriver\Configuration\Configuration::fromArray([])->paths // => ['.']Properties§
public array<string, scalar|array<array-key, mixed>|null> $environmentpublic list<string> $pathspublic list<string> $includepublic list<string> $excludepublic ?string $phpVersionpublic int $integerBitspublic ?int $floatPrecisionpublic bool $standardEvaluatorspublic ReportFormat $formatMethods§
public static function fromArray(array<array-key, mixed> $settings): selfValidates a settings mapping without reading files or constructing analysis objects.
Parameters
$settings | array<array-key, mixed> | Settings decoded from YAML or supplied by a caller |
Returns
selfThrows
ConfigurationException If keys or values do not match the command schemaTest cases 3
Called from 4
- static-call Deriver\Command\Input::configuration() packages/deriver/src/Command/Input.php:37
- static-call Deriver\Configuration\Loader::load() packages/deriver/src/Configuration/Loader.php:25
- static-call Deriver\Configuration\Loader::load() packages/deriver/src/Configuration/Loader.php:52
- static-call Deriver\Configuration\Loader::load() packages/deriver/src/Configuration/Loader.php:54
Calls 13
- function-call
array_key_existsline 60 - new ConfigurationException line 61
- function-call
array_replaceline 64 - function-call
is_arrayline 68 - function-call
array_is_listline 68 - function-call
is_stringline 73 - function-call
trimline 73 - function-call
str_containsline 73 - function-call
is_intline 84 - function-call
is_boolline 84 - static-call ReportFormat::tryFrom() line 87
- new Environment line 90
- new
selfline 91
Private surface 1§
Implementation details, listed for orientation only.
private function __construct(
public list<string> $paths,
public list<string> $include,
public list<string> $exclude,
public ?string $phpVersion,
public int $integerBits,
public ?int $floatPrecision,
Environment $environment,
public bool $standardEvaluators,
public ReportFormat $format,
)Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Static calls 4
- static-call Deriver\Command\Input::configuration() packages/deriver/src/Command/Input.php:37
- static-call Deriver\Configuration\Loader::load() packages/deriver/src/Configuration/Loader.php:25
- static-call Deriver\Configuration\Loader::load() packages/deriver/src/Configuration/Loader.php:52
- static-call Deriver\Configuration\Loader::load() packages/deriver/src/Configuration/Loader.php:54