InternalErrorException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 6
rs 10
ccs 2
cts 2
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Api;
4
5
use function sprintf;
6
7
class InternalErrorException extends RequestException
8
{
9
10 1
	public function __construct(Response $response)
11
	{
12 1
		parent::__construct(sprintf('Internal Error - response code %d', $response->getResponseCode()->getValue()), $response);
13 1
	}
14
15
}
16