Add ModLoadInformation insight
This commit is contained in:
21
src/Analysis/ProjectZomboid/ModLoadInformation.php
Normal file
21
src/Analysis/ProjectZomboid/ModLoadInformation.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace IndifferentKetchup\Codex\Analysis\ProjectZomboid;
|
||||
|
||||
use IndifferentKetchup\Codex\Analysis\Information;
|
||||
use IndifferentKetchup\Codex\Analysis\PatternInsightInterface;
|
||||
use IndifferentKetchup\Codex\Pattern\ProjectZomboid\DebugServerPattern;
|
||||
|
||||
class ModLoadInformation extends Information implements PatternInsightInterface
|
||||
{
|
||||
public static function getPatterns(): array
|
||||
{
|
||||
return [DebugServerPattern::MOD_LOAD];
|
||||
}
|
||||
|
||||
public function setMatches(array $matches, mixed $patternKey): void
|
||||
{
|
||||
$this->setLabel('Mod loaded');
|
||||
$this->setValue($matches['mod']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user