%PDF- %PDF-
Direktori : /home/graphicd/public_html/vebto/vendor/sentry/sentry/src/Transport/ |
Current File : /home/graphicd/public_html/vebto/vendor/sentry/sentry/src/Transport/NullTransport.php |
<?php declare(strict_types=1); namespace Sentry\Transport; use GuzzleHttp\Promise\FulfilledPromise; use GuzzleHttp\Promise\PromiseInterface; use Sentry\Event; use Sentry\Response; use Sentry\ResponseStatus; /** * This transport fakes the sending of events by just ignoring them. * * @author Stefano Arlandini <sarlandini@alice.it> */ final class NullTransport implements TransportInterface { /** * {@inheritdoc} */ public function send(Event $event): PromiseInterface { return new FulfilledPromise(new Response(ResponseStatus::skipped(), $event)); } /** * {@inheritdoc} */ public function close(?int $timeout = null): PromiseInterface { return new FulfilledPromise(true); } }