Skip to content

Commit

Permalink
Merge pull request #335 from Bilge/redundant-interfaces
Browse files Browse the repository at this point in the history
Removed redundant interface speficiation
  • Loading branch information
ramsey committed Aug 23, 2020
2 parents d103e07 + 49b772a commit e4562b0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/Builder/BuilderCollection.php
Expand Up @@ -15,7 +15,6 @@
namespace Ramsey\Uuid\Builder;

use Ramsey\Collection\AbstractCollection;
use Ramsey\Collection\CollectionInterface;
use Ramsey\Uuid\Converter\Number\GenericNumberConverter;
use Ramsey\Uuid\Converter\Time\GenericTimeConverter;
use Ramsey\Uuid\Converter\Time\PhpTimeConverter;
Expand All @@ -28,7 +27,7 @@
/**
* A collection of UuidBuilderInterface objects
*/
class BuilderCollection extends AbstractCollection implements CollectionInterface
class BuilderCollection extends AbstractCollection
{
public function getType(): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/DefaultUuidBuilder.php
Expand Up @@ -21,6 +21,6 @@
*
* @psalm-immutable
*/
class DefaultUuidBuilder extends Rfc4122UuidBuilder implements UuidBuilderInterface
class DefaultUuidBuilder extends Rfc4122UuidBuilder
{
}
3 changes: 1 addition & 2 deletions src/Guid/Guid.php
Expand Up @@ -18,7 +18,6 @@
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;

/**
* Guid represents a UUID with "native" (little-endian) byte order
Expand Down Expand Up @@ -49,7 +48,7 @@
*
* @psalm-immutable
*/
final class Guid extends Uuid implements UuidInterface
final class Guid extends Uuid
{
public function __construct(
Fields $fields,
Expand Down
3 changes: 1 addition & 2 deletions src/Nonstandard/Uuid.php
Expand Up @@ -18,14 +18,13 @@
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Converter\TimeConverterInterface;
use Ramsey\Uuid\Uuid as BaseUuid;
use Ramsey\Uuid\UuidInterface;

/**
* Nonstandard\Uuid is a UUID that doesn't conform to RFC 4122
*
* @psalm-immutable
*/
final class Uuid extends BaseUuid implements UuidInterface
final class Uuid extends BaseUuid
{
public function __construct(
Fields $fields,
Expand Down
3 changes: 1 addition & 2 deletions src/Provider/Node/NodeProviderCollection.php
Expand Up @@ -15,14 +15,13 @@
namespace Ramsey\Uuid\Provider\Node;

use Ramsey\Collection\AbstractCollection;
use Ramsey\Collection\CollectionInterface;
use Ramsey\Uuid\Provider\NodeProviderInterface;
use Ramsey\Uuid\Type\Hexadecimal;

/**
* A collection of NodeProviderInterface objects
*/
class NodeProviderCollection extends AbstractCollection implements CollectionInterface
class NodeProviderCollection extends AbstractCollection
{
public function getType(): string
{
Expand Down

0 comments on commit e4562b0

Please sign in to comment.