You are here

public function QueuedMessageWrapper::__construct in Sparkpost email 8.2

QueuedMessageWrapper constructor.

Overrides MessageWrapper::__construct

File

modules/sparkpost_requeue/src/QueuedMessageWrapper.php, line 38

Class

QueuedMessageWrapper
Queued message wrapper class.

Namespace

Drupal\sparkpost_requeue

Code

public function __construct(ClientServiceInterface $clientService) {
  $this->clientService = $clientService;
  if ($this
    ->getResult()) {
    $this
      ->setResult($this
      ->getResult());
  }
  if ($this
    ->getApiResponseException()) {
    $this
      ->setApiResponseException($this
      ->getApiResponseException());
  }
}