[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Operations/Enums/ -> OperationStateEnum.php (source)

   1  <?php
   2  
   3  declare (strict_types=1);
   4  namespace WordPress\AiClient\Operations\Enums;
   5  
   6  use WordPress\AiClient\Common\AbstractEnum;
   7  /**
   8   * Enum for operation states.
   9   *
  10   * @since 0.1.0
  11   *
  12   * @method static self starting() Creates an instance for STARTING state.
  13   * @method static self processing() Creates an instance for PROCESSING state.
  14   * @method static self succeeded() Creates an instance for SUCCEEDED state.
  15   * @method static self failed() Creates an instance for FAILED state.
  16   * @method static self canceled() Creates an instance for CANCELED state.
  17   * @method bool isStarting() Checks if the state is STARTING.
  18   * @method bool isProcessing() Checks if the state is PROCESSING.
  19   * @method bool isSucceeded() Checks if the state is SUCCEEDED.
  20   * @method bool isFailed() Checks if the state is FAILED.
  21   * @method bool isCanceled() Checks if the state is CANCELED.
  22   */
  23  class OperationStateEnum extends AbstractEnum
  24  {
  25      /**
  26       * Operation is starting.
  27       */
  28      public const STARTING = 'starting';
  29      /**
  30       * Operation is processing.
  31       */
  32      public const PROCESSING = 'processing';
  33      /**
  34       * Operation succeeded.
  35       */
  36      public const SUCCEEDED = 'succeeded';
  37      /**
  38       * Operation failed.
  39       */
  40      public const FAILED = 'failed';
  41      /**
  42       * Operation was canceled.
  43       */
  44      public const CANCELED = 'canceled';
  45  }


Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref