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.
Passed
Push — object-only ( 0d8579...6fbefe )
by SignpostMarv
10:24
created

PropertyNotJsonDecodableShouldBeArrayException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 22
rs 10
c 0
b 0
f 0
ccs 7
cts 7
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
/**
3
* Exceptions.
4
*
5
* @author SignpostMarv
6
*/
7
declare(strict_types=1);
8
9
namespace SignpostMarv\DaftObject;
10
11
use Throwable;
12
13
/**
14
* Exception thrown when a property is not writeable.
15
*/
16
class PropertyNotJsonDecodableShouldBeArrayException extends AbstractPropertyNotThingableException
17
{
18
    /**
19
    * Wraps to AbstractPropertyNotThingableException::__construct().
20
    *
21
    * @param string $className name of the class on which the property is not json-decodable
22
    * @param string $property name of the property which is not json-decodable
23
    * @param int $code @see Exception::__construct()
24
    * @param Throwable|null $previous @see Exception::__construct()
25
    */
26 12
    public function __construct(
27
        string $className,
28
        string $property,
29
        int $code = self::INT_DEFAULT_CODE,
30
        Throwable $previous = null
31
    ) {
32 12
        parent::__construct(
33 12
            'json-decodable (should be an array)',
34 6
            $className,
35 6
            $property,
36 6
            $code,
37 6
            $previous
38
        );
39 12
    }
40
}
41