class NoPipeSeparatedValidationRulesRule implements Rule

Recommend arrays over pipe-separated rule strings passed to the validator, its wrappers and prompts.

Constants

private METHODS

The parameters taking validation rules, by declaring class and lowercase method name, with the shape of their values.

private CONTROLLER_METHODS

The parameters of ValidatesRequests' methods that take validation rules.

Methods

__construct(ReflectionProvider $reflectionProvider, ValidationRuleHelper $helper)

Create a new rule instance.

string
getNodeType()

Get the node type the rule checks.

array
processNode(Node $node, Scope $scope)

Report the pipe-separated rule strings the call passes.

Details

at line 107
__construct(ReflectionProvider $reflectionProvider, ValidationRuleHelper $helper)

Create a new rule instance.

Parameters

ReflectionProvider $reflectionProvider
ValidationRuleHelper $helper

at line 116
string getNodeType()

Get the node type the rule checks.

Return Value

string

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

Report the pipe-separated rule strings the call passes.

Parameters

Node $node
Scope $scope

Return Value

array