Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog

POSIntegration::create_feed │ public │ WC 1.0

{@inheritdoc}

POS catalog feeds are generated in chunks across multiple processes, so this returns a feed that supports the resumable lifecycle. Narrowing the return type (a covariant override of the base FeedInterface{} contract) guarantees that at the language level for callers such as AsyncGenerator{}, instead of relying on a PHPDoc hint or a runtime check.

Method of the class: POSIntegration{}

No Hooks.

Returns

ResumableFeedInterface.

Usage

$POSIntegration = new POSIntegration();
$POSIntegration->create_feed(): ResumableFeedInterface;

POSIntegration::create_feed() code WC 11.3.0

public function create_feed(): ResumableFeedInterface {
	return new JsonFileFeed( 'pos-catalog-feed' );
}