Lines
100.00%
10 / 10
Methods
100.00%
2 / 2
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| events | 100.00% | 6 / 6 | 100.00% | 1 / 1 | 1 | ||
| [Lorekeeper\Server\Event\EventBundle] contains | 100.00% | 4 / 4 | 100.00% | 1 / 1 | 3 | ||
| 10 | final readonly class MapRefusals extends EventBundle | |
| 11 | { | |
| 12 | #[Override] | |
| 13 | public static function events(): array | |
| 14 | { | |
| 15 | return [ | |
| 16 | MapLockedEvent::class, | |
| 17 | MapMemberOnlyEvent::class, | |
| 18 | MapNotAvailableEvent::class, | |
| 19 | MapRequiresQuestEvent::class, | |
| 20 | ]; | |
| 21 | } | |
| 22 | } |
Inherited from Lorekeeper\Server\Event\EventBundle
| 12 | final public static function contains(mixed $answer): bool | |
| 13 | { | |
| 14 | foreach (static::events() as $event) { | |
| 15 | if ($answer instanceof $event) { | |
| 16 | return true; | |
| 17 | } | |
| 18 | } | |
| 19 | ||
| 20 | return false; | |
| 21 | } |