| Total Complexity | 9 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 40.91% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Uuid |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Generate UUID by version. |
||
| 12 | * |
||
| 13 | * @param int $version UUID Version |
||
| 14 | * @param string|\Ramsey\Uuid\UuidInterface $ns The UUID namespace in which to create the named UUID |
||
| 15 | * @param string $name The name to create a UUID for |
||
| 16 | * |
||
| 17 | * @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException |
||
| 18 | * |
||
| 19 | * @return \Ramsey\Uuid\UuidInterface UUID |
||
| 20 | */ |
||
| 21 | 3 | public static function generate(int $version = 4, $ns = null, string $name = null): UuidInterface |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Validate UUID plus version. |
||
| 47 | * |
||
| 48 | * @param string $uuid |
||
| 49 | * @param int|null $version UUID Version |
||
| 50 | * |
||
| 51 | * @return bool True for valid. |
||
| 52 | */ |
||
| 53 | public static function validate(string $uuid, int $version = null) |
||
| 68 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.