/** * @param SqsClient $client * @param Serializer $serializer * @param array $queueUrls */ public function __construct(SqsClient $client, Serializer $serializer, array $queueUrls = array()) { parent::__construct($serializer); $this->client = $client; $this->queueUrls = $queueUrls; }
public function __construct(PheanstalkInterface $conn, array $options = null, Serializer $serializer = null) { parent::__construct($serializer); $this->conn = $conn; $this->options = array_replace(['priority' => PheanstalkInterface::DEFAULT_PRIORITY, 'delay' => PheanstalkInterface::DEFAULT_DELAY, 'ttr' => PheanstalkInterface::DEFAULT_TTR, 'retry-priority' => PheanstalkInterface::DEFAULT_PRIORITY, 'retry-delay' => PheanstalkInterface::DEFAULT_DELAY, 'retry-ttr' => PheanstalkInterface::DEFAULT_TTR, 'fail-priority' => PheanstalkInterface::DEFAULT_PRIORITY, 'reserve-timeout' => 10], $options ?: []); }
/** * @param IronMQ $iron * @param Serializer $serializer * @param array $options Properties to pass with the message */ public function __construct(IronMQ $iron, Serializer $serializer = null, array $options = []) { parent::__construct($serializer); $this->iron = $iron; $this->options = $options; }