Automattic\WooCommerce\Internal\CLI\Migrator\Interfaces

PlatformFetcherInterface::fetch_batchpublicWC 1.0

Fetches a batch of items from the source platform.

Method of the class: PlatformFetcherInterface{}

No Hooks.

Returns

Array. An array containing: 'items' => array Raw items fetched from the platform. 'cursor' => ?string The cursor for the next page, or null if no more pages. 'has_next_page' => bool Indicates if there are more pages to fetch.

Usage

$PlatformFetcherInterface = new PlatformFetcherInterface();
$PlatformFetcherInterface->fetch_batch( $args ): array;
$args(array) (required)
Arguments for fetching (e.g., limit, cursor, filters). Specific arguments depend on the implementation.

PlatformFetcherInterface::fetch_batch() code WC 10.8.1

public function fetch_batch( array $args ): array;