mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Refactor TimeGeneratorInterface
- Remove UuidFactory from signature - Remove setters on UuidFactory to prevent inconsistencies (a new feature set and factory should be used instead) - Update tests to reflect those changes
This commit is contained in:
@@ -14,11 +14,9 @@
|
||||
|
||||
namespace Ramsey\Uuid\Generator;
|
||||
|
||||
use Ramsey\Uuid\UuidFactory;
|
||||
|
||||
class PeclUuidTimeGenerator implements TimeGeneratorInterface
|
||||
{
|
||||
public function generate(UuidFactory $factory, $node = null, $clockSeq = null)
|
||||
public function generate($node = null, $clockSeq = null)
|
||||
{
|
||||
$uuid = uuid_create(UUID_TYPE_TIME);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user