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

DaftObjectNotDaftJsonBadMethodCallException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 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