refactor(security): replace generic event with severity enum
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user