Files
michaelschiemer/src/Framework/ErrorBoundaries/Events/BoundaryEventInterface.php
Michael Schiemer 55a330b223 Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
2025-08-11 20:13:26 +02:00

41 lines
750 B
PHP

<?php
declare(strict_types=1);
namespace App\Framework\ErrorBoundaries\Events;
use App\Framework\Core\ValueObjects\Timestamp;
/**
* Base interface for error boundary events
*/
interface BoundaryEventInterface
{
public string $boundaryName {get;}
public string $eventType {get;}
public Timestamp $occurredAt {get;}
public string $severity {get;}
public ?string $message {get;}
public array $context {get;}
/**
* Get event identifier for logging/tracking
*/
public function getEventId(): string;
/**
* Check if event should trigger alerts
*/
public function shouldAlert(): bool;
/**
* Get event payload for serialization
*/
public function toArray(): array;
}