Validators
- interface Ramsey\Uuid\Validator\ValidatorInterface
- getPattern()
- Returns
The regular expression pattern used by this validator
- Return type
string
- validate($uuid)
- Parameters
$uuid (
string
) – The string to validate as a UUID
- Returns
True if the provided string represents a UUID, false otherwise
- Return type
bool
- class Ramsey\Uuid\Validator\GenericValidator
Implements
Ramsey\Uuid\Validator\ValidatorInterface
.GenericValidator validates strings as UUIDs of any variant.
- class Ramsey\Uuid\Rfc4122\Validator
Implements
Ramsey\Uuid\Validator\ValidatorInterface
.Rfc4122Validator validates strings as UUIDs of the RFC 4122 variant.