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
MapLockedEvent 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
10final readonly class MapLockedEvent extends NoticeEvent
11{
12    #[Override]
13    protected static function channel(): string
14    {
15        return 'warning';
16    }
17
18    #[Override]
19    protected static function phrase(): string
20    {
21        return 'map is locked';
22    }
23
24    #[Override]
25    public function summary(): string
26    {
27        return 'The map is locked';
28    }
29}