Lines 100.00% 3 / 3
Functions and Methods 100.00% 3 / 3
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
AlreadyInMapEvent 100.00% 3 / 3 100.00% 3 / 3 3 100.00% 1 / 1
 channel 100.00% 1 / 1 100.00% 1 / 1 1
 phrase 100.00% 1 / 1 100.00% 1 / 1 1
 summary 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Lorekeeper\Server\Event\Map;
6
7use Lorekeeper\Server\Event\NoticeEvent;
8use Override;
9
10/**
11 * The server refused to move our player because they are already in that map.
12 */
13final readonly class AlreadyInMapEvent extends NoticeEvent
14{
15    #[Override]
16    protected static function channel(): string
17    {
18        return 'warning';
19    }
20
21    #[Override]
22    protected static function phrase(): string
23    {
24        return 'already in';
25    }
26
27    #[Override]
28    public function summary(): string
29    {
30        return 'Already in that map';
31    }
32}