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 ( 6873de...20cb5c )
by SignpostMarv
03:42
created

ReadWriteJsonJson::GetJson()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
* @author SignpostMarv
4
*/
5
declare(strict_types=1);
6
7
namespace SignpostMarv\DaftObject;
8
9
class ReadWriteJsonJson extends AbstractArrayBackedDaftObject implements DaftJson
10
{
11
    const PROPERTIES = [
12
        'json',
13
    ];
14
15
    const EXPORTABLE_PROPERTIES = [
16
        'json',
17
    ];
18
19
    const JSON_PROPERTIES = [
20
        'json' => ReadWriteJson::class,
21
    ];
22
23
    public function GetJson() : ReadWriteJson
24
    {
25
        return $this->RetrievePropertyValueFromData('json');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->RetrievePr...tyValueFromData('json') could return the type null which is incompatible with the type-hinted return SignpostMarv\DaftObject\ReadWriteJson. Consider adding an additional type-check to rule them out.
Loading history...
26
    }
27
28
    public function SetJson(ReadWriteJson $json) : void
29
    {
30
        $this->NudgePropertyValue('json', $json);
31
    }
32
}
33