class MaxOccursRule extends AbstractMinMaxRule (View source)

Class LengthRule

Constants

VALIDATION_RULE_COMMENT_SENTENCE

SYMBOL_MAX_INCLUSIVE

Symbol to use for max rule

SYMBOL_MAX_EXCLUSIVE

Symbol to use for max exclusive rule

SYMBOL_MIN_INCLUSIVE

Symbol to use for min rule

SYMBOL_MIN_EXCLUSIVE

Symbol to use for min exclusive rule

SYMBOL_STRICT

Symbol to use for strict rule

Properties

protected Rules $rules from AbstractRule

Methods

__construct(Rules $rules)

No description

applyRule(string $parameterName, string|string[] $value, bool $itemType = false)

This method has to add the validation rule to the method's body

string
validationRuleComment(string|string[] $value)

No description

string
name()

No description

string
testConditions(string $parameterName, string|string[] $value, bool $itemType = false)

No description

string
exceptionMessageOnTestFailure(string $parameterName, string|string[] $value, bool $itemType = false)

No description

getRules()

No description

PhpMethod
getMethod()

No description

getMethods()

No description

getFile()

No description

getAttribute()

No description

getGenerator()

No description

string
symbol()

No description

string
comparisonString()

No description

Details

__construct(Rules $rules)

Parameters

Rules $rules

final AbstractRule applyRule(string $parameterName, string|string[] $value, bool $itemType = false)

This method has to add the validation rule to the method's body

Parameters

string $parameterName
string|string[] $value
bool $itemType

Return Value

AbstractRule

final string validationRuleComment(string|string[] $value)

Parameters

string|string[] $value

Return Value

string

string name()

Return Value

string

final string testConditions(string $parameterName, string|string[] $value, bool $itemType = false)

Parameters

string $parameterName
string|string[] $value
bool $itemType

Return Value

string

final string exceptionMessageOnTestFailure(string $parameterName, string|string[] $value, bool $itemType = false)

Parameters

string $parameterName
string|string[] $value
bool $itemType

Return Value

string

Rules getRules()

Return Value

Rules

PhpMethod getMethod()

Return Value

PhpMethod

Method getMethods()

Return Value

Method

StructAttribute getAttribute()

Return Value

StructAttribute

Generator getGenerator()

Return Value

Generator

string symbol()

Return Value

string

final string comparisonString()

Return Value

string