Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#7)
by Jérémiah
09:24
created

Argument   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 9
c 3
b 0
f 1
lcom 1
cbo 0
dl 0
loc 42
ccs 17
cts 17
cp 1
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 2
A offsetExists() 0 4 1
A offsetGet() 0 4 2
A offsetSet() 0 4 1
A offsetUnset() 0 4 1
A getRawArguments() 0 4 1
A count() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLBundle package.
5
 *
6
 * (c) Overblog <http://github.com/overblog/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Overblog\GraphQLBundle\Definition;
13
14
class Argument implements \ArrayAccess, \Countable
15
{
16
    /**
17
     * @var array
18
     */
19
    private $arguments;
20
21 29
    public function __construct(array $arguments = null)
22
    {
23 29
        $this->arguments = null === $arguments ? [] : $arguments;
24 29
    }
25
26 1
    public function offsetExists($offset)
27
    {
28 1
        return isset($this->arguments[$offset]);
29
    }
30
31 3
    public function offsetGet($offset)
32
    {
33 3
        return isset($this->arguments[$offset]) ? $this->arguments[$offset] : null;
34
    }
35
36 1
    public function offsetSet($offset, $value)
37
    {
38 1
        $this->arguments[$offset] = $value;
39 1
    }
40
41 1
    public function offsetUnset($offset)
42
    {
43 1
        unset($this->arguments[$offset]);
44 1
    }
45
46 7
    public function getRawArguments()
47
    {
48 7
        return $this->arguments;
49
    }
50
51 1
    public function count()
52
    {
53 1
        return count($this->arguments);
54
    }
55
}
56