GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 4a7e81...ca99c5 )
by SignpostMarv
01:57
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 3
crap 1
1
<?php
2
/**
3
* Base daft objects.
4
*
5
* @author SignpostMarv
6
*/
7
declare(strict_types=1);
8
9
namespace SignpostMarv\DaftObject;
10
11
use BadMethodCallException;
12
use Throwable;
13
14
class DaftObjectNotDaftJsonBadMethodCallException extends BadMethodCallException
15
{
16 64
    public function __construct(
17
        string $class,
18
        int $code = 0,
19
        Throwable $previous = null
20
    ) {
21 64
        parent::__construct(
22
            (
23
                $class .
24
                ' does not implement ' .
25 64
                DaftJson::class
26
            ),
27 64
            $code,
28 64
            $previous
29
        );
30 64
    }
31
}
32