WordPress\AiClient\Files\DTO

File::__clonepublicWP 0.4.2

Performs a deep clone of the file.

This method ensures that the MimeType value object is cloned to prevent any shared references between the original and cloned file.

Method of the class: File{}

No Hooks.

Returns

null. Nothing (null).

Usage

$File = new File();
$File->__clone();

Changelog

Since 0.4.2 Introduced.

File::__clone() code WP 7.0

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