WordPress\AiClient\Files\DTO
File::__clone
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() File:: clone WP 7.0
public function __clone()
{
$this->mimeType = clone $this->mimeType;
}