Constructor.
Parameters
$idstringrequired- Unique identifier for this operation.
$stateWordPressAiClientOperationsEnumsOperationStateEnumrequired- The current state of the operation.
$resultWordPressAiClientResultsDTOGenerativeAiResult|nulloptional- The result once the operation completes.
Default:
null
Source
public function __construct(string $id, OperationStateEnum $state, ?GenerativeAiResult $result = null)
{
$this->id = $id;
$this->state = $state;
$this->result = $result;
}
Changelog
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.