Documentation

ValidatorInterface

A validator validates a string as a proper UUID

Tags
psalm-immutable

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
psalm-return

non-empty-string

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

Search results