WordPress\AiClient\Providers\Contracts

ProviderWithOperationsHandlerInterface{}interfaceWP 0.1.0

Interface for providers that support operations handlers.

Providers implementing this interface can return an operations handler for managing long-running operations across all their models.

No Hooks.

Usage

$ProviderWithOperationsHandlerInterface = new ProviderWithOperationsHandlerInterface();
// use class methods

Methods

  1. public static operationsHandler()

Changelog

Since 0.1.0 Introduced.

ProviderWithOperationsHandlerInterface{} code WP 7.0

interface ProviderWithOperationsHandlerInterface
{
    /**
     * Gets the operations handler for this provider.
     *
     * @since 0.1.0
     *
     * @return ProviderOperationsHandlerInterface The operations handler.
     */
    public static function operationsHandler(): \WordPress\AiClient\Providers\Contracts\ProviderOperationsHandlerInterface;
}