<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Event\Compiler;

final class CompiledListenerRegistry
{
    public function __construct(private readonly array $data) {}

    public function events(): array { return $this->data['events'] ?? []; }
    public function listeners(): array { return $this->data['listeners'] ?? []; }
    public function generatedAt(): string { return $this->data['generatedAt'] ?? ''; }

    public function toArray(): array
    {
        return $this->data;
    }
}
