Automattic\WooCommerce\Internal\CLI\Migrator\Interfaces

PlatformFetcherInterface::fetch_batchpublicWC 1.0

Fetches a batch of items from the source platform.

Метод класса: PlatformFetcherInterface{}

Хуков нет.

Возвращает

Массив. 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.

Использование

$PlatformFetcherInterface = new PlatformFetcherInterface();
$PlatformFetcherInterface->fetch_batch( $args ): array;
$args(массив) (обязательный)
Arguments for fetching (e.g., limit, cursor, filters). Specific arguments depend on the implementation.

Код PlatformFetcherInterface::fetch_batch() WC 10.8.1

public function fetch_batch( array $args ): array;