k911/swoole-bundle

View on GitHub
src/Bridge/Symfony/Messenger/SwooleServerTaskReceiver.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace K911\Swoole\Bridge\Symfony\Messenger;

use K911\Swoole\Bridge\Symfony\Messenger\Exception\ReceiverNotAvailableException;
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface;

final class SwooleServerTaskReceiver implements ReceiverInterface
{
    /**
     * {@inheritdoc}
     */
    public function get(): iterable
    {
        throw ReceiverNotAvailableException::make();
    }

    /**
     * {@inheritdoc}
     */
    public function ack(Envelope $envelope): void
    {
        throw ReceiverNotAvailableException::make();
    }

    /**
     * {@inheritdoc}
     */
    public function reject(Envelope $envelope): void
    {
        throw ReceiverNotAvailableException::make();
    }
}