CoreFiles by mySites.guru
OperationInterface.php33 lines, 779 bytes, from wordpress-7.0-beta1.zip
Raw History Compare with 6.9-beta4
md5
d615d64f75fe279a86c38048baf1d535
sha1
c1f8b71721bf516d5ca8fc3d99c1e1ea6b32142b
sha256
bfad4bdb3a50bb114190b24c89c9779664ba29e619ac94eb32fc875532eb4778
<?php

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

use WordPress\AiClient\Operations\Enums\OperationStateEnum;
/**
 * Interface for AI operations.
 *
 * Operations represent long-running AI tasks that may not complete immediately.
 * They provide a way to track the progress and retrieve results asynchronously.
 *
 * @since 0.1.0
 */
interface OperationInterface
{
    /**
     * Gets the operation ID.
     *
     * @since 0.1.0
     *
     * @return string The unique operation identifier.
     */
    public function getId(): string;
    /**
     * Gets the current state of the operation.
     *
     * @since 0.1.0
     *
     * @return OperationStateEnum The operation state.
     */
    public function getState(): OperationStateEnum;
}

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