Use strict argument validation for collections

This resolves #106
This commit is contained in:
Ben Ramsey
2020-02-23 00:50:00 -06:00
parent a8f1692b7f
commit aaccc850a1
13 changed files with 111 additions and 87 deletions
@@ -0,0 +1,30 @@
<?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
declare(strict_types=1);
namespace Ramsey\Uuid\Provider\Node;
use Ramsey\Collection\AbstractCollection;
use Ramsey\Collection\CollectionInterface;
use Ramsey\Uuid\Provider\NodeProviderInterface;
/**
* A collection of NodeProviderInterface objects
*/
class NodeProviderCollection extends AbstractCollection implements CollectionInterface
{
public function getType(): string
{
return NodeProviderInterface::class;
}
}