Completed
Pull Request — master (#80)
by John
07:39 queued 04:25
created

UniqueIdLogRefBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php declare(strict_types = 1);
2
/*
3
 * This file is part of the KleijnWeb\SwaggerBundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\SwaggerBundle\Response\Error\LogRefBuilder;
10
11
use KleijnWeb\SwaggerBundle\Response\Error\LogRefBuilder;
12
use Symfony\Component\HttpFoundation\Request;
13
14
/**
15
 * @author John Kleijn <[email protected]>
16
 */
17
class UniqueIdLogRefBuilder implements LogRefBuilder
18
{
19
    /**
20
     * @param Request    $request
21
     * @param \Exception $exception
22
     *
23
     * @return string
24
     */
25
    public function create(Request $request, \Exception $exception): string
26
    {
27
        return uniqid();
28
    }
29
}
30