class TypedConfigGetterRule implements Rule

internal  
 

Reports a config read whose value always has one type that a typed getter returns.

Only an application's configuration is known: an application using a package can give the keys the package reads other values.

Methods

__construct(ConfigHelper $configHelper, ConfigParser $configParser, ReflectionProvider $reflectionProvider, RuntimeInputs $runtimeInputs)

Create a new typed config getter rule instance.

string
getNodeType()

Get the node type the rule checks.

array
processNode(Node $node, Scope $scope)

Report an untyped read of a config value with one type.

Details

at line 46
__construct(ConfigHelper $configHelper, ConfigParser $configParser, ReflectionProvider $reflectionProvider, RuntimeInputs $runtimeInputs)

Create a new typed config getter rule instance.

Parameters

ConfigHelper $configHelper
ConfigParser $configParser
ReflectionProvider $reflectionProvider
RuntimeInputs $runtimeInputs

at line 57
string getNodeType()

Get the node type the rule checks.

Return Value

string

at line 70
array processNode(Node $node, Scope $scope)

Report an untyped read of a config value with one type.

Parameters

Node $node
Scope $scope

Return Value

array