Ben Ramsey
6430a37adc
Refactor to move the network configuration capture to a separate method
2013-12-27 08:53:45 -06:00
Ben Ramsey
7bebd01e31
Add uuid console application and tests for generating UUIDs from CLI
2013-12-27 08:42:55 -06:00
Jeff Welch
fb7a9cb310
Fugbix typo.
2013-12-02 21:39:32 -05:00
Ben Ramsey
4d746373fa
Full code coverage for generateBytes()
2013-09-15 17:17:33 -05:00
Daniel Freudenberger
7b7a106449
use openssl_random_pseudo_bytes to generate random bytes
2013-09-15 19:12:10 +02:00
Ben Ramsey
6812417da1
Corrected constructor documentation
2013-08-06 18:12:15 -05:00
Ben Ramsey
06349e9b96
Correct a docblock, removing a reference to an old method name
2013-07-30 16:28:48 -05:00
Ben Ramsey
588a19b706
Better formatting for documentation and improved clarity on getVersion()
2013-07-29 18:53:43 -05:00
Ben Ramsey
8da98305c7
Add some code comments to explain the time value being used.
2013-07-26 17:35:00 -05:00
Ben Ramsey
77c9c154f6
Allow a 128-bit integer formatted as a hex string in Uuid::fromString()
2013-07-26 17:34:27 -05:00
Ben Ramsey
6530b2610d
Return null for the version if variant isn't RFC 4122
2013-07-26 17:33:08 -05:00
Ben Ramsey
a0ab45f7dd
Updating docblock with explanation of why it's good to sort UUIDs
2013-07-26 17:31:50 -05:00
Alexander
ebe97d4c27
Add Uuid::fromBytes() to (re-)create a Uuid from a byte string
2013-07-16 13:44:28 +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
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
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