src/QueueManager.php
public function putCheck($check, $queueName = null)
    {
        if ($queueName === null) {
            if ($this->defaultQueue === null) {
                throw new \LogicException('Default queue is not set');
            }
            $queueName = $this->defaultQueue;
        }

        if (!$this->hasQueue($queueName)) {
            throw new \InvalidArgumentException(sprintf('Unknown queue "%s"', $queueName));
        }

        $path = sprintf('api/shop/v1/queues/%s/task', $this->queues[$queueName]);
        return $this->client->sendRequest($path, $check->asArray());
    }
public function putCheck($check, $queueName = null)
    {
        if ($queueName === null) {
            if ($this->defaultQueue === null) {
                throw new \LogicException('Default queue is not set');
            }
            $queueName = $this->defaultQueue;
        }

        if (!$this->hasQueue($queueName)) {
            throw new \InvalidArgumentException(sprintf('Unknown queue "%s"', $queueName));
        }

        $path = sprintf('api/shop/v1/queues/%s/task', $this->queues[$queueName]);
        return $this->client->sendRequest($path, $check->asArray());
    }
public function putCheck ( $ check , $ queueName = null ) { if ( $ queueName === null ) { if ( $ this -> defaultQueue === null ) { throw new \ LogicException ( 'Default queue is not set' ) ; } $ queueName = $ this -> defaultQueue ; } if ( ! $ this -> hasQueue ( $ queueName ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown queue "%s"' , $ queueName ) ) ; } $ path = sprintf ( 'api/shop/v1/queues/%s/task' , $ this -> queues [ $ queueName ] ) ; return $ this -> client -> sendRequest ( $ path , $ check -> asArray ( ) ) ; }
Sends a check to queue

@param Check|CorrectionCheck $check Check instance
@param string $queueName Queue name

@return mixed
Sends a check to queue