ValidatorInterface
in
A validator validates a string as a proper UUID
Tags
Table of Contents
- getPattern() : string
- Returns the regular expression pattern used by this validator
- validate() : bool
- Returns true if the provided string represents a UUID
Methods
getPattern()
Returns the regular expression pattern used by this validator
public
getPattern() : string
Tags
Return values
string —The regular expression pattern this validator uses
validate()
Returns true if the provided string represents a UUID
public
validate(string $uuid) : bool
Parameters
- $uuid : string
-
The string to validate as a UUID
Return values
bool —True if the string is a valid UUID, false otherwise