Debian Codegraph @

vendor/ramsey/uuid/src/Provider/NodeProviderInterface.php

raw
1 <?php
2 /**
3 * This file is part of the ramsey/uuid library
4 *
5 * For the full copyright and license information, please view the LICENSE
6 * file that was distributed with this source code.
7 *
8 * @copyright Copyright (c) Ben Ramsey <[email protected]>
9 * @license http://opensource.org/licenses/MIT MIT
10 * @link https://benramsey.com/projects/ramsey-uuid/ Documentation
11 * @link https://packagist.org/packages/ramsey/uuid Packagist
12 * @link https://github.com/ramsey/uuid GitHub
13 */
14
15 namespace Ramsey\Uuid\Provider;
16
17 use Exception;
18
19 /**
20 * NodeProviderInterface provides functionality to get the node ID (or host ID
21 * in the form of the system's MAC address) from a specific type of node provider
22 */
23 interface NodeProviderInterface
24 {
25 /**
26 * Returns the system node ID
27 *
28 * @return string System node ID as a hexadecimal string
29 * @throws Exception if it was not possible to gather sufficient entropy
30 */
31 public function getNode();
32 }