Change NodeProviderInterface::getNode() to return Hexadecimal

This commit is contained in:
Ben Ramsey
2020-02-29 22:35:45 -06:00
parent 4ffd156a84
commit 86c37eff4c
13 changed files with 196 additions and 135 deletions
+6 -7
View File
@@ -14,18 +14,17 @@ declare(strict_types=1);
namespace Ramsey\Uuid\Provider;
use Ramsey\Uuid\Type\Hexadecimal;
/**
* A node provider retrieves the system node ID
*
* The system node ID, or host ID, is often the same as the MAC address for a
* network interface on the host.
* A node provider retrieves or generates a node ID
*/
interface NodeProviderInterface
{
/**
* Returns the system node ID
* Returns a node ID
*
* @return string|false|null System node ID as a hexadecimal string
* @return Hexadecimal The node ID as a hexadecimal string
*/
public function getNode();
public function getNode(): Hexadecimal;
}