You are here

public function AcquiaPurgeQueueItem::__construct in Acquia Purge 7

Constructs an queue item object.

Parameters

int $created: Timestamp when the item was put into the queue.

mixed $data: Purge specific data to be associated with the new task in the queue.

int $expire: Timestamp when the item expires from the queue.

string|int $item_id: The unique ID from AcquiaPurgeQueueInterface::createItem()

Overrides AcquiaPurgeQueueItemInterface::__construct

File

lib/queue/AcquiaPurgeQueueItem.php, line 75

Class

AcquiaPurgeQueueItem
Provides a queue item object.

Code

public function __construct($created, $data, $expire, $item_id) {
  $this->created = $created;
  $this->item_id = $item_id;
  $this->expire = $expire;
  $this->data = $data;
  $this->class_invalidation = _acquia_purge_load(array(
    '_acquia_purge_invalidation_interface',
    '_acquia_purge_invalidation',
  ));
}