Alexander
ebe97d4c27
Add Uuid::fromBytes() to (re-)create a Uuid from a byte string
2013-07-16 13:44:28 +02:00
Ben Ramsey
ae04fc49a5
Regenerated documentation to include the new requiresSQLCommentHint()
2013-07-04 10:52:08 -05:00
Ben Ramsey
73f746aad5
Removed unnecessary whitespace.
2013-07-04 10:50:44 -05:00
Jesper Pedersen
8bb74e0297
added requiresSQLCommentHint true
...
To make Doctrine schema tool able distinguish between this type and string such that it does not try to update the field every time update schema is run.
2013-07-04 14:09:23 +02:00
Ben Ramsey
e44a6ae90f
Ensure uppercase digits in the node are converted to lowercase
2013-07-03 17:59:25 -05:00
Ben Ramsey
9d175d1d79
Fixed NIL bug in isValid() method, reported by @ocubom in PR #11
2013-04-29 15:38:09 -05:00
Eric Thelin
77d2aa5007
only call the getClockSeqHiAndReserved method once because it will have the same data each time
2013-04-15 17:48:14 -05:00
Eric Thelin
40a13a18c6
create isValid method call to check is a UUID matches the standards including tests
2013-04-15 17:47:08 -05:00
Ben Ramsey
33198005c9
Bumping copyright year to 2013.
2013-01-20 11:35:46 -06:00
Ben Ramsey
a07a86ef14
Improved exception messages to provide hints for other methods to call
2013-01-20 11:06:56 -06:00
Ben Ramsey
a5f297be77
Improved and cleaned up API documentation.
2013-01-19 13:27:10 -06:00
Ben Ramsey
689af97cd9
Throw exception from getTimestampHex() if not a version 1 UUID
2013-01-19 13:25:32 -06:00
Ben Ramsey
8f63d671a7
Replace BadMethodCallException with UnsatisfiedDependencyException
2013-01-19 12:48:05 -06:00
Ben Ramsey
ad3bde8b24
Moved UnsupportedOperationException to the Exception subnamespace
2013-01-19 12:09:04 -06:00
Ben Ramsey
fdb88d3637
Updating for changes made to the Moontoast\Math\BigNumber interface
2013-01-09 17:28:44 -06:00
Ben Ramsey
eb83d9bcf9
BC-BREAK: Changing output of most/least sig bits methods
2013-01-05 03:12:59 -06:00
Ben Ramsey
9104026c14
Support UUID timestamp on 32-bit systems
2013-01-05 02:56:17 -06:00
Ben Ramsey
a3eb795b82
Switch system node parameter to be a string hexadecimal value
2013-01-04 22:56:02 -06:00
Ben Ramsey
61cd298122
Throwing exceptions for certain methods on 32-bit systems
2013-01-04 22:37:41 -06:00
Ben Ramsey
ed8ec33eb1
Adding hasBigNumber() and is64BitSystem() helper methods
2013-01-04 21:58:47 -06:00
Ben Ramsey
a7766c0e40
Removing 32-bit exception thrown from the constructor
2013-01-04 21:41:46 -06:00
Ben Ramsey
e2579ac565
Moving method around for consistent alphabetical ordering
2013-01-04 21:40:12 -06:00
Ben Ramsey
f877161a5c
Move testing flag for ignoring system node to a static property
2013-01-04 21:08:29 -06:00
Ben Ramsey
7f1c5dda77
Converted internals to use string hex fields, rather than integers
...
I managed to accomplish this without affecting backwards compatibility
of the interface and expected outputs. Unfortunately, two tests are now
failing, even on 64-bit platforms: getMostSignificantBits() and
getLeastSignificantBits(). I will need to break BC for these two
methods in order to return integers (rather than floats).
2013-01-04 18:27:18 -06:00
Ben Ramsey
e394a27e74
Implemented get*Hex() methods for most/least significant bits
2013-01-04 17:07:01 -06:00
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