Yoast\WP\SEO\AI_HTTP_Request\Domain

Response::__constructpublicYoast 1.0

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.
По умолчанию: []

Код Response::__construct() Yoast 27.8

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