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.

Метод класса: File{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 0.4.2 Введена.

Код File::__clone() WP 7.0

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