Rename UuidBuilder to Builder\UuidBuilderInterface

This commit is contained in:
Ben Ramsey
2015-07-16 10:06:16 -05:00
parent 3f0ba1ed00
commit db27dc1680
5 changed files with 9 additions and 10 deletions
+1 -2
View File
@@ -17,9 +17,8 @@ namespace Ramsey\Uuid\Builder;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidBuilder;
class DefaultUuidBuilder implements UuidBuilder
class DefaultUuidBuilder implements UuidBuilderInterface
{
private $converter;
+1 -2
View File
@@ -14,12 +14,11 @@
namespace Ramsey\Uuid\Builder;
use Ramsey\Uuid\UuidBuilder;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\DegradedUuid;
use Ramsey\Uuid\Converter\NumberConverterInterface;
class DegradedUuidBuilder implements UuidBuilder
class DegradedUuidBuilder implements UuidBuilderInterface
{
private $converter;
@@ -12,11 +12,11 @@
* @link https://github.com/ramsey/uuid GitHub
*/
namespace Ramsey\Uuid;
namespace Ramsey\Uuid\Builder;
use Ramsey\Uuid\Codec\CodecInterface;
interface UuidBuilder
interface UuidBuilderInterface
{
/**
* @return Uuid
+2 -2
View File
@@ -16,7 +16,7 @@ namespace Ramsey\Uuid\Codec;
use InvalidArgumentException;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidBuilder;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\UuidInterface;
class StringCodec implements CodecInterface
@@ -24,7 +24,7 @@ class StringCodec implements CodecInterface
private $builder;
public function __construct(UuidBuilder $builder)
public function __construct(UuidBuilderInterface $builder)
{
$this->builder = $builder;
}
+3 -2
View File
@@ -21,6 +21,7 @@ use Ramsey\Uuid\Provider\NodeProviderInterface;
use Ramsey\Uuid\Provider\TimeProviderInterface;
use Ramsey\Uuid\Generator\RandomGeneratorInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
class UuidFactory implements UuidFactoryInterface
{
@@ -62,7 +63,7 @@ class UuidFactory implements UuidFactoryInterface
/**
*
* @var UuidBuilder
* @var UuidBuilderInterface
*/
private $uuidBuilder = null;
@@ -128,7 +129,7 @@ class UuidFactory implements UuidFactoryInterface
$this->numberConverter = $converter;
}
public function setUuidBuilder(UuidBuilder $builder)
public function setUuidBuilder(UuidBuilderInterface $builder)
{
$this->uuidBuilder = $builder;
}