Lines
100.00%
2 / 2
Methods
100.00%
2 / 2
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| join | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 9 | final readonly class Map | |
| 10 | { | |
| 11 | public function __construct( | |
| 12 | public MapName $name, | |
| 13 | public MapRoom $room, | |
| 14 | public Gamefile $file, | |
| 15 | public MapMonsters $monsters, | |
| 16 | public MapPlayers $players, | |
| 17 | ) {} | |
| 18 | ||
| 19 | public function join(): string | |
| 20 | { | |
| 21 | return "{$this->name}-{$this->room}"; | |
| 22 | } | |
| 23 | } |