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.

ParamCollection   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 7

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A all() 0 3 1
A keys() 0 3 1
A get() 0 3 2
A has() 0 3 1
A set() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lib\Http;
6
7
class ParamCollection
8
{
9
    // @codeCoverageIgnoreStart
10
    protected $parameters;
11
12
    public function __construct(array $params = [])
13
    {
14
        $this->parameters = $params;
15
    }
16
17
    public function all()
18
    {
19
        return $this->parameters;
20
    }
21
22
    public function keys()
23
    {
24
        return array_keys($this->parameters);
25
    }
26
27
    public function get($key, $default = null)
28
    {
29
        return array_key_exists($key, $this->parameters) ? $this->parameters[$key] : $default;
30
    }
31
32
    public function has($key)
33
    {
34
        return array_key_exists($key, $this->parameters);
35
    }
36
37
    public function set($key, $value)
38
    {
39
        $this->parameters[$key] = $value;
40
    }
41
42
    // @codeCoverageIgnoreEnd
43
}
44