File: D:/HostingSpaces/SBogers10/wingssprayer.komma.pro/vendor/sentry/sentry/src/Spool/SpoolInterface.php
<?php
declare(strict_types=1);
namespace Sentry\Spool;
use Sentry\Event;
use Sentry\Transport\TransportInterface;
/**
* This interface must be implemented by all classes willing to provide the
* storage of a spool.
*
* @author Stefano Arlandini <sarlandini@alice.it>
*/
interface SpoolInterface
{
/**
* Queues an event.
*
* @param Event $event The event to store
*
* @return bool Whether the operation has succeeded
*/
public function queueEvent(Event $event): bool;
/**
* Sends the events that are in the queue using the given transport.
*
* @param TransportInterface $transport The transport instance
*/
public function flushQueue(TransportInterface $transport): void;
}