refactor(security): replace generic event with severity enum

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-08-05 23:59:49 -04:00
parent 3f9c2500d9
commit 84eb0e2c21
27 changed files with 80 additions and 247 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ use KTXF\Event\Event;
abstract class FirewallIpEvent extends Event implements SecurityRequestEventInterface
{
protected const SEVERITY = SecurityEvent::SEVERITY_INFO;
protected const SecurityEventSeverity SEVERITY = SecurityEventSeverity::INFO;
final public function __construct(
private readonly string $ipAddress,
@@ -61,7 +61,7 @@ abstract class FirewallIpEvent extends Event implements SecurityRequestEventInte
return $this->reason;
}
public function getSeverity(): int
public function getSeverity(): SecurityEventSeverity
{
return static::SEVERITY;
}