ContextParamValidatorInterface
in
Table of Contents
Methods
- getErrorMessage() : string|null
- Get the error message if validation failed
- validate() : bool
- Validate the context parameter value
Methods
getErrorMessage()
Get the error message if validation failed
public
getErrorMessage() : string|null
Return values
string|null —The error message or null if no error
validate()
Validate the context parameter value
public
validate(mixed $value) : bool
Parameters
- $value : mixed
-
The value to validate
Return values
bool —True if valid, false otherwise