| Total Complexity | 6 | 
| Total Lines | 43 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 13 | final class PlayerDto implements JsonSerializable  | 
            ||
| 14 | { | 
            ||
| 15 | private Role $role;  | 
            ||
| 16 | private PlayerId $playerId;  | 
            ||
| 17 | private string $password;  | 
            ||
| 18 | private string $nickname;  | 
            ||
| 19 | |||
| 20 | public function __construct(PlayerId $playerId, string $password, string $nickname, Role $role)  | 
            ||
| 21 |     { | 
            ||
| 22 | $this->playerId = $playerId;  | 
            ||
| 23 | $this->role = $role;  | 
            ||
| 24 | $this->nickname = $nickname;  | 
            ||
| 25 | $this->password = $password;  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | public function playerId(): PlayerId  | 
            ||
| 29 |     { | 
            ||
| 30 | return $this->playerId;  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 | public function role(): Role  | 
            ||
| 34 |     { | 
            ||
| 35 | return $this->role;  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 | public function nickname(): string  | 
            ||
| 39 |     { | 
            ||
| 40 | return $this->nickname;  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | public function password(): string  | 
            ||
| 44 |     { | 
            ||
| 45 | return $this->password;  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | public function jsonSerialize(): array  | 
            ||
| 56 | ];  | 
            ||
| 57 | }  | 
            ||
| 58 | }  | 
            ||
| 59 |