WordPress\AiClient\Results\DTO
Candidate::__clone
Performs a deep clone of the candidate.
This method ensures that the message object is cloned to prevent modifications to the cloned candidate from affecting the original.
Метод класса: Candidate{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Candidate = new Candidate(); $Candidate->__clone();
Список изменений
| С версии 0.4.2 | Введена. |
Код Candidate::__clone() Candidate:: clone WP 7.1.2
public function __clone()
{
$this->message = clone $this->message;
}