UuidIdentity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromString() 0 5 1
1
<?php
2
3
/*
4
 * identity (https://github.com/phpgears/identity).
5
 * Identity objects for PHP.
6
 *
7
 * @license MIT
8
 * @link https://github.com/phpgears/identity
9
 * @author Julián Gutiérrez <[email protected]>
10
 */
11
12
declare(strict_types=1);
13
14
namespace Gears\Identity;
15
16
/**
17
 * UUID identity.
18
 */
19
class UuidIdentity extends AbstractUuidIdentity
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    final public static function fromString(string $value)
25
    {
26
        $uuid = static::uuidFromString($value);
27
28
        return new static($uuid->toString());
29
    }
30
}
31