class UuidValidator extendsConstraintValidator

Validates whether the value is a valid UUID (also known as GUID).

Strict validation will allow a UUID as specified per RFC 4122. Loose validation will allow any type of UUID.

Constants

STRICT_LENGTH

STRICT_FIRST_HYPHEN_POSITION

STRICT_LAST_HYPHEN_POSITION

STRICT_VERSION_POSITION

STRICT_VARIANT_POSITION

LOOSE_MAX_LENGTH

LOOSE_FIRST_HYPHEN_POSITION

Methods

void
validate(mixed$value,Constraint$constraint)

No description

Details

void validate(mixed$value,Constraint$constraint)

Parameters

mixed $value
Constraint $constraint

Return Value

void