xp-framework/xp-framework — pull request #149 by thekid (2012-04-15 15:21:33+00:00)
Title: New util.UUID class

This pull request implements the first part of xp-framework/rfc#229 and merges its `UUID` class with a revamped API into XP Framework core:

Creation
--

```php

```

Instanciation
--

```php

```

Output
--

```php
hashCode(); // '6ba7b811-9dad-11d1-80b4-00c04fd430c8'
$uuid->toString(); // '{6ba7b811-9dad-11d1-80b4-00c04fd430c8}'
$uuid->getUrn(); // 'urn:uuid:6ba7b811-9dad-11d1-80b4-00c04fd430c8'
$uuid->getBytes(); // new Bytes("k\xa7\xb8\x11\x9d\xad\x11\xd1\x80\xb4\x00\xc0O\xd40\xc8")
?>
```