src/Wrep/Notificato/Apns/Gateway.php
public function queue(Message $message)
	{
		// Bump the message ID
		$this->lastMessageId++;

		// Put the message in an envelope
		$envelope = new MessageEnvelope($this->lastMessageId, $message);

		// Save the message so we can update it later on
		$this->storeMessageEnvelope($envelope);

		// Queue and return the envelope
		$this->logger->debug('Queuing Apns\Message #' . $this->lastMessageId . ' to device "' . $message->getDeviceToken() . '" on Apns\Gateway with certificate "' . $this->getCertificate()->getDescription() . '"');
		$this->sendQueue->enqueue($envelope);

		return $envelope;
	}
public function queue(Message $message)
	{
		// Bump the message ID
		$this->lastMessageId++;

		// Put the message in an envelope
		$envelope = new MessageEnvelope($this->lastMessageId, $message);

		// Save the message so we can update it later on
		$this->storeMessageEnvelope($envelope);

		// Queue and return the envelope
		$this->logger->debug('Queuing Apns\Message #' . $this->lastMessageId . ' to device "' . $message->getDeviceToken() . '" on Apns\Gateway with certificate "' . $this->getCertificate()->getDescription() . '"');
		$this->sendQueue->enqueue($envelope);

		return $envelope;
	}
public function queue ( Message $ message ) { // Bump the message ID $ this -> lastMessageId ++ ; // Put the message in an envelope $ envelope = new MessageEnvelope ( $ this -> lastMessageId , $ message ) ; // Save the message so we can update it later on $ this -> storeMessageEnvelope ( $ envelope ) ; // Queue and return the envelope $ this -> logger -> debug ( 'Queuing Apns\Message #' . $ this -> lastMessageId . ' to device "' . $ message -> getDeviceToken ( ) . '" on Apns\Gateway with certificate "' . $ this -> getCertificate ( ) -> getDescription ( ) . '"' ) ; $ this -> sendQueue -> enqueue ( $ envelope ) ; return $ envelope ; }
Queue a message for sending

@param Message The message object to queue for sending
@return MessageEnvelope
Queue a message for sending