public function DatabaseQueue::__construct in Payment 8.2
Constructs a new instance.
Parameters
string $queue_id: The unique ID of the queue (instance).
\Drupal\Core\Database\Connection $database: A database connection.
\Drupal\payment\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\payment\Plugin\Payment\Status\PaymentStatusManagerInterface: The payment status plugin manager.
File
- src/DatabaseQueue.php, line 77 
Class
- DatabaseQueue
- Provides a database-based payment queue.
Namespace
Drupal\paymentCode
public function __construct($queue_id, Connection $database, EventDispatcherInterface $event_dispatcher, PaymentStatusManagerInterface $payment_status_manager) {
  $this->database = $database;
  $this->eventDispatcher = $event_dispatcher;
  $this->paymentStatusManager = $payment_status_manager;
  $this->randomGenerator = new Random();
  $this->queueId = $queue_id;
}