Debian Codegraph @

vendor/ramsey/uuid/src/Provider/TimeProviderInterface.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 /**
18 * TimeProviderInterface provides functionality to get the time from a specific
19 * type of time provider
20 */
21 interface TimeProviderInterface
22 {
23 /**
24 * Returns a timestamp array
25 *
26 * @return int[] Array guaranteed to contain `sec` and `usec` components of a timestamp
27 */
28 public function currentTime();
29 }