<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Event\Queue;

final class QueueHydrator
{
    public function hydrateEvents(array $rows): array
    {
        return array_map(static fn (array $row): DeferredEvent => DeferredEvent::fromArray($row), $rows);
    }
}
