You are here

public function SpoolList::__construct in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Spool/SpoolList.php \Drupal\simplenews\Spool\SpoolList::__construct()
  2. 3.x src/Spool/SpoolList.php \Drupal\simplenews\Spool\SpoolList::__construct()

Creates a spool list.

Parameters

array $spool_rows: List of mail spool rows.

\Drupal\simplenews\Spool\SpoolStorageInterface $spool_storage: The spool storage.

File

src/Spool/SpoolList.php, line 66

Class

SpoolList
List of mail spool entries.

Namespace

Drupal\simplenews\Spool

Code

public function __construct(array $spool_rows, SpoolStorageInterface $spool_storage) {
  $this->spoolRows = $spool_rows;
  $this->spoolStorage = $spool_storage;
}