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
Push — annotations ( 92917b...59f47e )
by Jérémiah
14:11
created

Edge   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 48
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getNode() 0 4 1
A setNode() 0 4 1
A getCursor() 0 4 1
A setCursor() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Relay\Connection\Output;
6
7
use Overblog\GraphQLBundle\Relay\Connection\EdgeInterface;
8
9
class Edge implements EdgeInterface
10
{
11
    use DeprecatedPropertyPublicAccessTrait;
12
13
    /** @var string */
14
    protected $cursor;
15
16
    /** @var mixed */
17
    protected $node;
18
19 85
    public function __construct(string $cursor = null, $node = null)
20
    {
21 85
        $this->cursor = $cursor;
22 85
        $this->node = $node;
23 85
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28 79
    public function getNode()
29
    {
30 79
        return $this->node;
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36 2
    public function setNode($node): void
37
    {
38 2
        $this->node = $node;
39 2
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44 83
    public function getCursor(): ? string
45
    {
46 83
        return $this->cursor;
47
    }
48
49
    /**
50
     * {@inheritdoc}
51
     */
52 1
    public function setCursor(string $cursor): void
53
    {
54 1
        $this->cursor = $cursor;
55 1
    }
56
}
57