Node   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 23
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRank() 0 3 1
A getId() 0 3 1
A setRank() 0 3 1
A setId() 0 3 1
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