PlayerDto   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 19
ccs 0
cts 8
cp 0
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A level() 0 3 1
A id() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Game\Features\Answers\Player;
6
7
final class PlayerDto
8
{
9
    private int $level;
10
    private PlayerId $playerId;
11
12
    public function __construct(PlayerId $playerId, int $level)
13
    {
14
        $this->playerId = $playerId;
15
        $this->level = $level;
16
    }
17
18
    public function level(): int
19
    {
20
        return $this->level;
21
    }
22
23
    public function id(): PlayerId
24
    {
25
        return $this->playerId;
26
    }
27
}
28