You are here

public function QueueData::__construct in Warmer 8

Same name and namespace in other branches
  1. 2.x src/QueueData.php \Drupal\warmer\QueueData::__construct()

Creates a queue data object.

Parameters

callable $callback: The callback to call on dequeue.

array $ids: The item IDs to process.

$warmer_id: The warmer ID.

File

src/QueueData.php, line 41

Class

QueueData
Value object to store in the queue with all the infor to process a batch.

Namespace

Drupal\warmer

Code

public function __construct(callable $callback, array $ids, $warmer_id) {
  $this->callback = $callback;
  $this->ids = $ids;
  $this->warmerId = $warmer_id;
}