CorrelationId   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
3
namespace Pachico\SlimCorrelationId\Model;
4
5
use \Pachico\SlimCorrelationId\Generator;
6
7
class CorrelationId extends AbstractId
8
{
9
10
    const DEFAULT_HEADER_KEY = 'X-Correlation-Id';
11
    const DEFAULT_KEY = 'correlation_id';
12
13
    /**
14
     * @{inheritdoc}
15
     */
16
    public static function create(Generator\IdInterface $generator)
17
    {
18
        return new self($generator->create());
19
    }
20
}
21