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.
Method of the class: Candidate{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Candidate = new Candidate(); $Candidate->__clone();
Changelog
| Since 0.4.2 | Introduced. |
Candidate::__clone() Candidate:: clone code WP 7.0
public function __clone()
{
$this->message = clone $this->message;
}