Lines
100.00%
5 / 5
Methods
100.00%
2 / 2
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| events | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| [Lorekeeper\Server\Event\EventBundle] contains | 100.00% | 4 / 4 | 100.00% | 1 / 1 | 3 | ||
| 10 | final readonly class MapJoins extends EventBundle | |
| 11 | { | |
| 12 | #[Override] | |
| 13 | public static function events(): array | |
| 14 | { | |
| 15 | return [MovedToMapEvent::class, AlreadyInMapEvent::class]; | |
| 16 | } | |
| 17 | } |
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 | } |