class PaymentQueuePaymentIdsAlter in Payment 8.2
Provides an event that alters \Drupal\payment\QueueInterface::loadPaymentIds() results.
Hierarchy
- class \Drupal\payment\Event\PaymentQueuePaymentIdsAlter extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of PaymentQueuePaymentIdsAlter
See also
\Drupal\payment\Event\PaymentEvents::PAYMENT_QUEUE_PAYMENT_IDS_ALTER
4 files declare their use of PaymentQueuePaymentIdsAlter
- EventDispatcherCollectionTest.php in tests/
src/ Unit/ EventDispatcherCollectionTest.php - PaymentQueuePaymentIdsAlterTest.php in tests/
src/ Unit/ Event/ PaymentQueuePaymentIdsAlterTest.php - SymfonyEventDispatcher.php in src/
SymfonyEventDispatcher.php - SymfonyEventDispatcherTest.php in tests/
src/ Unit/ SymfonyEventDispatcherTest.php
File
- src/
Event/ PaymentQueuePaymentIdsAlter.php, line 13
Namespace
Drupal\payment\EventView source
class PaymentQueuePaymentIdsAlter extends Event {
/**
* The queue category ID.
*
* @var string
*/
protected $categoryId;
/**
* The ID of the user that must own the payments.
*
* @var int
*/
protected $ownerId;
/**
* The IDs of available payments as loaded by the queue.
*
* @var int[]
*/
protected $paymentIds;
/**
* The queue ID.
*
* @var string
*/
protected $queueId;
/**-
* Constructs a new instance.
*
* @param string $queue_id
* The queue ID.
* @param string $category_id
* The queue category ID.
* @param int $owner_id
* The ID of the user that must own the paymnets.
* @param int[] $payment_ids
* The IDs of available payments as loaded by the queue.
*/
public function __construct($queue_id, $category_id, $owner_id, array $payment_ids) {
$this->categoryId = $category_id;
$this->ownerId = $owner_id;
$this->paymentIds = $payment_ids;
$this->queueId = $queue_id;
}
/**
* Gets the queue ID.
*
* @return string
*/
public function getQueueId() {
return $this->queueId;
}
/**
* Gets the queue category ID.
*
* @return string
*/
public function getCategoryId() {
return $this->categoryId;
}
/**
* Gets the ID of the user who owns the payments.
*
* @return int
*/
public function getOwnerId() {
return $this->ownerId;
}
/**
* Gets the IDs of the available payments.
*
* @return int[]
*/
public function getPaymentIds() {
return $this->paymentIds;
}
/**
* Sets the IDs of the available payments.
*
* @param int[] $payment_ids
*
* @return $this
*/
public function setPaymentIds(array $payment_ids) {
$this->paymentIds = $payment_ids;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PaymentQueuePaymentIdsAlter:: |
protected | property | The queue category ID. | |
PaymentQueuePaymentIdsAlter:: |
protected | property | The ID of the user that must own the payments. | |
PaymentQueuePaymentIdsAlter:: |
protected | property | The IDs of available payments as loaded by the queue. | |
PaymentQueuePaymentIdsAlter:: |
protected | property | The queue ID. | |
PaymentQueuePaymentIdsAlter:: |
public | function | Gets the queue category ID. | |
PaymentQueuePaymentIdsAlter:: |
public | function | Gets the ID of the user who owns the payments. | |
PaymentQueuePaymentIdsAlter:: |
public | function | Gets the IDs of the available payments. | |
PaymentQueuePaymentIdsAlter:: |
public | function | Gets the queue ID. | |
PaymentQueuePaymentIdsAlter:: |
public | function | Sets the IDs of the available payments. | |
PaymentQueuePaymentIdsAlter:: |
public | function |