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 — master ( 4b315b...f1f5b9 )
by SignpostMarv
09:11
created

PropertyNotRewriteableException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 8
cts 8
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 11
nc 1
nop 4
crap 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 PropertyNotRewriteableException extends AbstractPropertyNotThingableError
17
{
18
    /**
19
    * Wraps to TypeError::__construct().
20
    *
21
    * @param string $className name of the class on which the property is not writeable
22
    * @param string $property name of the property which is not writeable
23
    * @param int $code @see TypeError::__construct()
24
    * @param Throwable|null $previous @see TypeError::__construct()
25
    */
26 2
    public function __construct(
27
        string $className,
28
        string $property,
29
        int $code = 0,
30
        Throwable $previous = null
31
    ) {
32 2
        parent::__construct(
33 2
            'rewriteable',
34 2
            $className,
35 2
            $property,
36 2
            $code,
37 2
            $previous
38
        );
39 2
    }
40
}
41