Commit Graph

16 Commits

Author SHA1 Message Date
Ben Ramsey ca73977ae3 Providing separate get*Hex() methods for each UUID field 2013-01-04 16:57:39 -06:00
Marijn Huizendveld 2612648d2e Relax conversion rules.
Current implementation would not accept empty strings and would
throw exception in that case.
2012-11-29 09:54:06 +01:00
Ben Ramsey 5215d7e0b0 Removing "final" restriction so that the class may be mocked 2012-08-27 22:03:23 -05:00
Marijn Huizendveld 5c42045fa3 Fix PHPDoc keyword.
Using the non-standard `@returns` might trigger errors in conjunction
with the `AnnotationReader` from `Doctrine\Common`.
2012-08-15 18:53:33 +02:00
Ben Ramsey 1bc50e4fb8 Test for UuidType::getSqlDeclaration 2012-08-06 20:30:58 -05:00
Marijn Huizendveld ecdb6f4f82 Utilize native SQL field type declarations.
Doctrine provides a method to get the platform independent SQL field
declaration.
2012-08-07 00:51:33 +02:00
Marijn Huizendveld 5d9ff8c07e Improve code PSR-0, PSR-1 and PSR-2 compliance.
- tabs -> spaces
- whitespace around control structures
2012-08-06 18:30:02 +02:00
Marijn Huizendveld dcbb873e62 Add UUID type definition for Doctrine DBAL.
This allows the use of [custom mapping types][1] when using the Doctrine
DBAL or Doctrine ORM.

[1]: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html#custom-mapping-types
2012-08-06 18:03:54 +02:00
Ben Ramsey d0ffcb2d4a Adding code to detect whether this is a 32-bit or 64-bit PHP build 2012-07-19 17:02:19 -05:00
Ben Ramsey a1fc4ef300 Implemented compareTo() and equals() 2012-07-18 20:13:37 -05:00
Ben Ramsey ebf1640ccb Implemented support for v3, v4, and v5 UUIDs. 2012-07-18 19:24:02 -05:00
Ben Ramsey 7450337147 Better UUIDv1 testing and generation of random node value 2012-07-18 19:22:24 -05:00
Ben Ramsey f4616584f9 Cleanup with some name changes. 2012-07-18 17:21:42 -05:00
Ben Ramsey 302b5c519d Streamlining toString() method 2012-07-18 17:20:54 -05:00
Ben Ramsey 1b26a6da84 Shortened the names of most/least significant bits internally 2012-07-18 17:19:12 -05:00
Ben Ramsey db0cf77ed4 Renamed library/ to src/ to be consistent with other projects. 2012-07-18 16:55:29 -05:00