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.

Foo   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 12
dl 0
loc 36
ccs 14
cts 14
cp 1
rs 10
c 1
b 1
f 0
wmc 6

5 Methods

Rating   Name   Duplication   Size   Complexity  
A isSomeProperty() 0 3 1
A getSomeProperty() 0 3 1
A hasSomeProperty() 0 3 1
A someProperty() 0 9 2
A setSomeProperty() 0 5 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Fixtures\Innmind\Reflection;
5
6
class Foo
7
{
8
    private $someProperty = 42;
9
    protected $inheritProtected = 'whatever';
10
11 4
    public function someProperty(int $newValue = null)
12
    {
13 4
        if (is_int($newValue)) {
14 1
            $this->someProperty = $newValue;
15
16 1
            return $this;
17
        }
18
19 4
        return $this->someProperty;
20
    }
21
22 1
    public function getSomeProperty()
23
    {
24 1
        return $this->someProperty;
25
    }
26
27 1
    public function hasSomeProperty()
28
    {
29 1
        return true;
30
    }
31
32 1
    public function isSomeProperty()
33
    {
34 1
        return false;
35
    }
36
37 1
    public function setSomeProperty($value)
38
    {
39 1
        $this->someProperty = $value;
40
41 1
        return $this;
42
    }
43
}
44