class CheckDispatchArgumentTypesCompatibleWithClassConstructorRule implements Rule

Methods

__construct(ReflectionProvider $reflectionProvider, FunctionCallParametersCheck $check, string $dispatchableClass)

Create a new rule instance.

string
getNodeType()

Get the node type the rule inspects.

array
processNode(Node $node, Scope $scope)

Check the dispatch arguments against the dispatched class's constructor.

Details

at line 36
__construct(ReflectionProvider $reflectionProvider, FunctionCallParametersCheck $check, string $dispatchableClass)

Create a new rule instance.

Parameters

ReflectionProvider $reflectionProvider
FunctionCallParametersCheck $check
string $dispatchableClass

at line 46
string getNodeType()

Get the node type the rule inspects.

Return Value

string

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

Check the dispatch arguments against the dispatched class's constructor.

Parameters

Node $node
Scope $scope

Return Value

array