Passed
Push — master ( 748bbc...6ff058 )
by Dominik
02:33
created

Locked   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chubbyphp\ApiHttp\ApiProblem\ClientError;
6
7
use Chubbyphp\ApiHttp\ApiProblem\AbstractApiProblem;
8
9
final class Locked extends AbstractApiProblem
10
{
11
    /**
12
     * @param string|null $detail
13
     * @param string|null $instance
14
     */
15 2
    public function __construct(string $detail = null, string $instance = null)
16
    {
17 2
        parent::__construct(
18 2
            'https://tools.ietf.org/html/rfc4918#section-11.3',
19 2
            423,
20 2
            'Locked',
21
            $detail,
22
            $instance
23
        );
24 2
    }
25
}
26