<?php
declare(strict_types=1);

namespace App\Core\Contracts;

interface EventDispatcherInterface
{
    public function dispatch(string $event, array $data = []): array;

    public function listen(string $event, callable $handler, int $priority = 0): void;

    public function hasListeners(string $event): bool;
}
