HasUuid   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A byUuid() 0 3 1
1
<?php
2
3
namespace LeKoala\Uuid;
4
5
/**
6
 * Happy IDEs with this trait :-)
7
 */
8
trait HasUuid
9
{
10
    /**
11
     * @param string $value
12
     * @param string $format
13
     * @return static
14
     */
15
    public static function byUuid($value, $format = null)
16
    {
17
        return UuidExtension::getByUuid(get_called_class(), $value, $format);
18
    }
19
}
20