Yoast\WP\SEO\AI_HTTP_Request\Domain

Response::__construct │ public │ Yoast 1.0

Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Response constructor.

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

Хуков нет.

Возвращает

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

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

$Response = new Response();
$Response->__construct( $body, $response_code, $message, $error_code, $missing_licenses );
$body(строка) (обязательный)
The response body.
$response_code(int) (обязательный)
The response code.
$message(строка) (обязательный)
The response message.
$error_code(строка)
The error code.
По умолчанию: ''
$missing_licenses(array)
The missing licenses.
По умолчанию: []

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

Устарела с 28.4

Код Response::__construct() Yoast 28.9

public function __construct( string $body, int $response_code, string $message, string $error_code = '', $missing_licenses = [] ) {
	\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
	$this->body             = $body;
	$this->response_code    = $response_code;
	$this->message          = $message;
	$this->error_code       = $error_code;
	$this->missing_licenses = $missing_licenses;
}