Lines 100.00% 2 / 2
Functions and Methods 100.00% 2 / 2
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
Map 100.00% 2 / 2 100.00% 2 / 2 2 100.00% 1 / 1
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 join 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Lorekeeper\Core\World\Map;
6
7use Lorekeeper\Core\Game\Asset\Gamefile;
8
9final 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}