WordPress\AiClient\Providers\Http\DTO

Response::__clone │ public │ WP 0.4.2

Creates a deep clone of this response.

Clones the headers collection to ensure the cloned response is independent of the original.

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

Хуков нет.

Возвращает

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

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

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

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

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

Код Response::__clone() WP 7.1.2

public function __clone()
{
    // Clone headers collection
    $this->headers = clone $this->headers;
}