src/mako/utility/UUID.php
public static function toHexadecimal(string $bytes): string
	{
		if(strlen($bytes) !== 16)
		{
			throw new InvalidArgumentException('The input must be exactly 16 bytes.');
		}

		return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($bytes), 4));
	}
public static function toHexadecimal(string $bytes): string
	{
		if(strlen($bytes) !== 16)
		{
			throw new InvalidArgumentException('The input must be exactly 16 bytes.');
		}

		return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($bytes), 4));
	}
public static function toHexadecimal ( string $ bytes ) : string { if ( strlen ( $ bytes ) !== 16 ) { throw new InvalidArgumentException ( 'The input must be exactly 16 bytes.' ) ; } return vsprintf ( '%s%s-%s-%s-%s-%s%s%s' , str_split ( bin2hex ( $ bytes ) , 4 ) ) ; }
Converts a binary UUID to its hexadecimal representation.

@param  string $bytes Binary representation of a UUID
@return string
Converts a binary UUID to its hexadecimal representation .