ValidatesOne
interface ValidatesOne implements ValidatesAny (View source)
Interface for constraints that validate a single item.
Methods
void
check(mixed $value = null)
Checks if the given value is valid and throws an exception if not.
from
ValidatesAny
Result
validate(mixed $value = null)
Validates the given value and returns the validation result.
Details
void
check(mixed $value = null)
Checks if the given value is valid and throws an exception if not.
bool
isValid(mixed $value = null)
Checks if the given value is valid.
Result
validate(mixed $value = null)
Validates the given value and returns the validation result.