27 lines
749 B
PHP
27 lines
749 B
PHP
<?php
|
|
|
|
namespace IndifferentKetchup\Codex\Analysis\ProjectZomboid;
|
|
|
|
use IndifferentKetchup\Codex\Analysis\Information;
|
|
use IndifferentKetchup\Codex\Analysis\PatternInsightInterface;
|
|
use IndifferentKetchup\Codex\Pattern\ProjectZomboid\AdminPattern;
|
|
|
|
class AdminAddedItemInformation extends Information implements PatternInsightInterface
|
|
{
|
|
public static function getPatterns(): array
|
|
{
|
|
return [AdminPattern::ADDED_ITEM_ENTRY];
|
|
}
|
|
|
|
public function setMatches(array $matches, mixed $patternKey): void
|
|
{
|
|
$this->setLabel('Admin added item');
|
|
$this->setValue(sprintf(
|
|
'%s added %s to %s',
|
|
$matches['admin'],
|
|
$matches['item'],
|
|
$matches['target']
|
|
));
|
|
}
|
|
}
|