WordPress\AiClient\Operations\DTO
GenerativeAiOperation::__clone
Creates a deep clone of this operation.
Clones the result object if present to ensure the cloned operation is independent of the original. The state enum is immutable and can be safely shared.
Метод класса: GenerativeAiOperation{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$GenerativeAiOperation = new GenerativeAiOperation(); $GenerativeAiOperation->__clone();
Список изменений
| С версии 0.4.2 | Введена. |
Код GenerativeAiOperation::__clone() GenerativeAiOperation:: clone WP 7.1.2
public function __clone()
{
// Clone the result if present (GenerativeAiResult has __clone)
if ($this->result !== null) {
$this->result = clone $this->result;
}
// Note: $state is an immutable enum and can be safely shared
}