Renamed ContactRecord to Contact
This commit is contained in:
parent
a1704338c8
commit
05f6661a75
7 changed files with 371 additions and 12 deletions
|
@ -68,4 +68,15 @@
|
|||
{
|
||||
return checkdate($month, $day, $year);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates whether the given UUID is a valid UUID.
|
||||
*
|
||||
* @param string $uuid The UUID to validate.
|
||||
* @return bool Returns true if the provided UUID is valid, otherwise false.
|
||||
*/
|
||||
public static function validateUuid(string $uuid): bool
|
||||
{
|
||||
return preg_match("/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/", $uuid) === 1;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue