Node::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpScience\PageRank\Data;
6
7 1
class Node implements NodeInterface
8
{
9
    private int   $id;
10
    private float $rank;
11
12 2
    public function getId(): int
13
    {
14 2
        return $this->id;
15
    }
16
17 3
    public function setId(int $id): void
18
    {
19 3
        $this->id = $id;
20 3
    }
21
22 3
    public function getRank(): float
23
    {
24 3
        return $this->rank;
25
    }
26
27 3
    public function setRank(float $rank): void
28
    {
29 3
        $this->rank = $rank;
30 3
    }
31
}
32