src/Queue/QueueRegistry.php
public function getQueueContext($name)
    {
        /*
         * @var string
         * @var Queue
         */
        foreach ($this->queues as $fingerPrint => $queue) {
            if ($queue->getName() === $name) {
                return $queue->getContext();
            }
        }

        throw new NotFoundException(sprintf(
            'Unable to find queue %s',
            $name
        ));
    }
public function getQueueContext($name)
    {
        /*
         * @var string
         * @var Queue
         */
        foreach ($this->queues as $fingerPrint => $queue) {
            if ($queue->getName() === $name) {
                return $queue->getContext();
            }
        }

        throw new NotFoundException(sprintf(
            'Unable to find queue %s',
            $name
        ));
    }
@param $name

@throws NotFoundException

@return Context