/**
  * @param QueueItem $queueItem
  *
  * @return string
  */
 private function queueItemToString(QueueItem $queueItem)
 {
     $subject = $queueItem->getMessage()->getSubject();
     $emailAddress = $queueItem->getSubscriber()->getEmailAddress();
     return sprintf("%d. (%s -> %s)\n", $queueItem->getId(), $subject, $emailAddress);
 }
 /**
  * @param QueueItem $queueItem
  *
  * @return string
  */
 private function prepareMessageBuilder(QueueItem $queueItem)
 {
     $message = $queueItem->getMessage();
     $campaign = $message->getCampaign();
     $template = $campaign->getTemplate();
     $subscriber = $queueItem->getSubscriber();
     $this->messageBuilder->setEntityVars($message, $campaign, $template, $subscriber, $queueItem);
 }