Add AdminReloadedOptionsInformation insight

This commit is contained in:
2026-04-30 21:46:47 +00:00
parent b7b89ef24e
commit 64641fa8e8
3 changed files with 50 additions and 0 deletions

View 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\AdminPattern;
class AdminReloadedOptionsInformation extends Information implements PatternInsightInterface
{
public static function getPatterns(): array
{
return [AdminPattern::RELOADED_OPTIONS_ENTRY];
}
public function setMatches(array $matches, mixed $patternKey): void
{
$this->setLabel('Admin reloaded options');
$this->setValue($matches['admin']);
}
}