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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MapRequiresQuestEvent | 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 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Lorekeeper\Server\Event\Map; | |
| 6 | ||
| 7 | use Lorekeeper\Server\Event\NoticeEvent; | |
| 8 | use Override; | |
| 9 | ||
| 10 | /** | |
| 11 | * The server refused to move our player because the map needs a quest to be done first. | |
| 12 | */ | |
| 13 | final readonly class MapRequiresQuestEvent 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 'that map requires special quest actions'; | |
| 25 | } | |
| 26 | ||
| 27 | #[Override] | |
| 28 | public function summary(): string | |
| 29 | { | |
| 30 | return 'That map requires special quest actions'; | |
| 31 | } | |
| 32 | } |