CoreFiles by mySites.guru
ProviderOperationsHandlerInterface.php29 lines, 850 bytes, from wordpress-7.2-beta4.zip
Raw History Compare with 7.2-beta3
md5
18b348947cf99ba828b028bd7ad90bcb
sha1
f6264d0c98d43133a8abb1a01a3d1b6646d43d99
sha256
0fd5848b4fa0098bb0d0eae62ee2563e05e4b5e116a86cf38c31d11ffd9bac19
<?php

declare (strict_types=1);
namespace WordPress\AiClient\Providers\Contracts;

use WordPress\AiClient\Common\Exception\InvalidArgumentException;
use WordPress\AiClient\Operations\Contracts\OperationInterface;
/**
 * Interface for handling provider-level operations.
 *
 * Provides methods to retrieve and manage long-running operations
 * across all models within a provider. Operations are tracked at the
 * provider level rather than per-model.
 *
 * @since 0.1.0
 */
interface ProviderOperationsHandlerInterface
{
    /**
     * Gets an operation by ID.
     *
     * @since 0.1.0
     *
     * @param string $operationId Operation identifier.
     * @return OperationInterface The operation.
     * @throws InvalidArgumentException If operation not found.
     */
    public function getOperation(string $operationId): OperationInterface;
}

The same content is in 44 releases, WordPress 7.0-beta1 to 7.2-RC2. See them all, or every version of this file.