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:
Aztech
2015-07-23 22:39:23 +02:00
committed by Ben Ramsey
parent b7bb2018bf
commit 8974c76bf6
9 changed files with 160 additions and 88 deletions
+1 -3
View File
@@ -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);