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.

Exclusion::getGroups()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Hateoas\Configuration;
4
5
/**
6
 * @author Adrien Brault <[email protected]>
7
 */
8
class Exclusion
9
{
10
    /**
11
     * @var null|array
12
     */
13
    private $groups;
14
15
    /**
16
     * @var null|float
17
     */
18
    private $sinceVersion;
19
20
    /**
21
     * @var null|float
22
     */
23
    private $untilVersion;
24
25
    /**
26
     * @var null|integer
27
     */
28
    private $maxDepth;
29
30
    /**
31
     * @var null|string
32
     */
33
    private $excludeIf;
34
35
    public function __construct(
36
        array $groups = null,
37
        $sinceVersion = null,
38
        $untilVersion = null,
39
        $maxDepth = null,
40
        $excludeIf = null
41
    ) {
42
        $this->groups = $groups;
43
        $this->sinceVersion = null !== $sinceVersion ? (float) $sinceVersion : null;
44
        $this->untilVersion = null !== $untilVersion ? (float) $untilVersion : null;
45
        $this->maxDepth = null !== $maxDepth ? (int) $maxDepth : null;
46
        $this->excludeIf = $excludeIf;
47
    }
48
49
    /**
50
     * @return null|array
51
     */
52
    public function getGroups()
53
    {
54
        return $this->groups;
55
    }
56
57
    /**
58
     * @return null|float
59
     */
60
    public function getSinceVersion()
61
    {
62
        return $this->sinceVersion;
63
    }
64
65
    /**
66
     * @return null|float
67
     */
68
    public function getUntilVersion()
69
    {
70
        return $this->untilVersion;
71
    }
72
73
    /**
74
     * @return int|null
75
     */
76
    public function getMaxDepth()
77
    {
78
        return $this->maxDepth;
79
    }
80
81
    /**
82
     * @return null|string
83
     */
84
    public function getExcludeIf()
85
    {
86
        return $this->excludeIf;
87
    }
88
}
89