userId},{$this->resource}"; } public function getDescription(): string { return "User {$this->userId} administrative action on {$this->resource}"; } public function getLogLevel(): SecurityLogLevel { return SecurityLogLevel::WARN; } public function getCategory(): string { return 'authorization'; } public function requiresAlert(): bool { // Admin-Aktionen sind immer beobachtungswürdig return true; } public function toArray(): array { return [ 'userId' => $this->userId, 'resource' => $this->resource, 'action' => $this->action, 'event_identifier' => $this->getEventIdentifier(), 'category' => $this->getCategory(), 'log_level' => $this->getLogLevel()->value, 'requires_alert' => $this->requiresAlert(), ]; } }