FailedDependency::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 2
dl 0
loc 8
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 FailedDependency extends AbstractApiProblem
10
{
11
    public function __construct(string $detail = null, string $instance = null)
12
    {
13
        parent::__construct(
14
            'https://tools.ietf.org/html/rfc4918#section-11.4',
15 2
            424,
16
            'Failed Dependency',
17 2
            $detail,
18 2
            $instance
19 2
        );
20 2
    }
21
}
22