Add ext-json as a dependency

This commit is contained in:
Ben Ramsey
2018-08-05 16:59:04 -05:00
parent d09ea80159
commit 5d5eab97ee
2 changed files with 8 additions and 3 deletions
+1
View File
@@ -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"
},
+7 -3
View File
@@ -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();