Add ModMissingProblem and ModMissingSolution
This commit is contained in:
24
src/Analysis/ProjectZomboid/ModMissingSolution.php
Normal file
24
src/Analysis/ProjectZomboid/ModMissingSolution.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace IndifferentKetchup\Codex\Analysis\ProjectZomboid;
|
||||
|
||||
use IndifferentKetchup\Codex\Analysis\Solution;
|
||||
|
||||
class ModMissingSolution extends Solution
|
||||
{
|
||||
private string $modName = '';
|
||||
|
||||
public function setModName(string $modName): static
|
||||
{
|
||||
$this->modName = $modName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getMessage(): string
|
||||
{
|
||||
return sprintf(
|
||||
'Subscribe to mod "%s" or remove its ID from the Mods= line in serverconfig.ini.',
|
||||
$this->modName
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user