ViewStringFunctionDependencyRule
class ViewStringFunctionDependencyRule implements Rule
Declares that a call to a function whose signature uses a view-string depends on which views exist.
ViewStringTypeNodeResolverExtension declares it on the class of a member, but a function has no class, so each call declares it.
Methods
__construct(ReflectionProvider $reflectionProvider, RuntimeInputs $runtimeInputs)
Create a new view-string function dependency rule.
string
getNodeType()
Get the node type the rule checks.
array
processNode(Node $node, Scope $scope)
Declare the dependency of a call to a function whose signature uses a view-string.
Details
at line 43
__construct(ReflectionProvider $reflectionProvider, RuntimeInputs $runtimeInputs)
Create a new view-string function dependency rule.
at line 52
string
getNodeType()
Get the node type the rule checks.
at line 65
array
processNode(Node $node, Scope $scope)
Declare the dependency of a call to a function whose signature uses a view-string.