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::getCursor()   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
    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