CombUuidGenerationDefinition   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 28
ccs 4
cts 5
cp 0.8
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createConfigurator() 0 4 1
A formalize() 0 6 1
1
<?php
2
namespace PSB\Core\UuidGeneration\Comb;
3
4
5
use PSB\Core\Util\Settings;
6
use PSB\Core\UuidGeneration\UuidGenerationDefinition;
7
8
class CombUuidGenerationDefinition extends UuidGenerationDefinition
9
{
10
    /**
11
     * Creates the UuidGenerationConfigurator specific to the uuid generation implementation.
12
     *
13
     * @param Settings $settings
14
     *
15
     * @return CombUuidGenerationConfigurator
16
     */
17 1
    public function createConfigurator(Settings $settings)
18
    {
19 1
        return new CombUuidGenerationConfigurator($settings);
20
    }
21
22
    /**
23
     * Provides a factory method for building a uuid generator
24
     *
25
     * @param Settings $settings
26
     *
27
     * @return callable
28
     */
29 1
    public function formalize(Settings $settings)
30
    {
31
        return function () {
32
            return new TimestampFirstCombGenerator();
33 1
        };
34
    }
35
}
36