Candidate::__clone()

In this article

Performs a deep clone of the candidate.

Description

This method ensures that the message object is cloned to prevent modifications to the cloned candidate from affecting the original.

Source

public function __clone()
{
    $this->message = clone $this->message;
}

Changelog

VersionDescription
0.4.2Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.