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 ( 993dc1...11510d )
by Baptiste
02:04
created

Foo::setSomeProperty()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Fixtures\Innmind\Reflection;
5
6
class Foo
7
{
8
    protected $someProperty = 42;
9
10 8
    public function someProperty(int $newValue = null)
11
    {
12 8
        if (is_int($newValue)) {
13 2
            $this->someProperty = $newValue;
14
15 2
            return $this;
16
        }
17
18 8
        return $this->someProperty;
19
    }
20
21 2
    public function getSomeProperty()
22
    {
23 2
        return $this->someProperty;
24
    }
25
26 2
    public function hasSomeProperty()
27
    {
28 2
        return true;
29
    }
30
31 2
    public function isSomeProperty()
32
    {
33 2
        return false;
34
    }
35
36 2
    public function setSomeProperty($value)
37
    {
38 2
        $this->someProperty = $value;
39
40 2
        return $this;
41
    }
42
}
43