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 (#413)
by Vincent
14:40
created

Edge::getNode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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
    /** @var string */
12
    protected $cursor;
13
14
    /** @var mixed */
15
    protected $node;
16
17 54
    public function __construct(string $cursor = null, $node = null)
18
    {
19 54
        $this->cursor = $cursor;
20 54
        $this->node = $node;
21 54
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 51
    public function getNode()
27
    {
28 51
        return $this->node;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34 1
    public function setNode($node): void
35
    {
36 1
        $this->node = $node;
37 1
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42 53
    public function getCursor(): ? string
43
    {
44 53
        return $this->cursor;
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function setCursor(string $cursor): void
51
    {
52
        $this->cursor = $cursor;
53
    }
54
}
55