This adapter is used to fetch payment methods in batches.
The following example loops through all the payment methods:
$paymentMethods = new BatchIterator(new BatchIteratorAdapter($this->paymentMethodService))
foreach ($paymentMethods as $paymentMethod) {
// ...
}
Methods¶
__construct()
¶
BatchIteratorAdapter.php
:
33
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $paymentMethodService | PaymentMethodServiceInterface | - | - |
| $query | PaymentMethodQuery|null | null | - |
fetch()
¶
BatchIteratorAdapter.php
:
39
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $offset | int | - | - |
| $limit | int | - | - |
Return values
Iterator