Yoast\WP\SEO\Bulk_Editor\Domain\Updates

Update_Result::__construct │ private │ Yoast 1.0

The constructor. Use the named constructors to create instances.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->__construct( $post_id, $success, ?string $error_code, $rendered, $sanitized );
$post_id(int) (обязательный)
The ID of the post the result is for.
$success(true|false) (обязательный)
Whether the update succeeded.
?string $error_code(обязательный)
.
$rendered(array<string, string>)
The rendered values of the updated fields.
По умолчанию: []
$sanitized(array<string, string>)
The sanitized literals that were persisted.
По умолчанию: []

Код Update_Result::__construct() Yoast 28.9

private function __construct( int $post_id, bool $success, ?string $error_code, array $rendered = [], array $sanitized = [] ) {
	$this->post_id    = $post_id;
	$this->success    = $success;
	$this->error_code = $error_code;
	$this->rendered   = $rendered;
	$this->sanitized  = $sanitized;
}