mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Add ext-json as a dependency
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
},
|
||||
"require": {
|
||||
"php": "^5.4 || ^7.0",
|
||||
"ext-json": "*",
|
||||
"paragonie/random_compat": "^1.0|^2.0|9.99.99",
|
||||
"symfony/polyfill-ctype": "^1.8"
|
||||
},
|
||||
|
||||
@@ -14,14 +14,18 @@
|
||||
|
||||
namespace Ramsey\Uuid;
|
||||
|
||||
use DateTime;
|
||||
use JsonSerializable;
|
||||
use Ramsey\Uuid\Converter\NumberConverterInterface;
|
||||
use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
|
||||
use Ramsey\Uuid\Exception\UnsupportedOperationException;
|
||||
use Serializable;
|
||||
|
||||
/**
|
||||
* UuidInterface defines common functionality for all universally unique
|
||||
* identifiers (UUIDs)
|
||||
*/
|
||||
interface UuidInterface extends \JsonSerializable, \Serializable
|
||||
interface UuidInterface extends JsonSerializable, Serializable
|
||||
{
|
||||
/**
|
||||
* Compares this UUID to the specified UUID.
|
||||
@@ -121,9 +125,9 @@ interface UuidInterface extends \JsonSerializable, \Serializable
|
||||
* has version type 1. If this UUID is not a time-based UUID then
|
||||
* this method throws `UnsupportedOperationException`.
|
||||
*
|
||||
* @return \DateTime A PHP DateTime representation of the date
|
||||
* @return DateTime A PHP DateTime representation of the date
|
||||
* @throws UnsupportedOperationException If this UUID is not a version 1 UUID
|
||||
* @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if called in a 32-bit system and
|
||||
* @throws UnsatisfiedDependencyException if called in a 32-bit system and
|
||||
* `Moontoast\Math\BigNumber` is not present
|
||||
*/
|
||||
public function getDateTime();
|
||||
|
||||
Reference in New Issue
Block a user