# wp-optimize/4.6.1/vendor/team-updraft/lib-onboarding-wizard/Wizard/RestResponse/RestResponse.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 4.6.1. 31 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/4.6.1/code/vendor/team-updraft/lib-onboarding-wizard/Wizard/RestResponse/RestResponse.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.6.1/raw/vendor/team-updraft/lib-onboarding-wizard/Wizard/RestResponse/RestResponse.php
- Modified: 2025-12-12T13:37:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-optimize/4.6.1/code/vendor/team-updraft/lib-onboarding-wizard/Wizard/RestResponse/RestResponse.php#L10-L20`.

```php
<?php
namespace Updraftplus\Wp_Optimize\Wizard\RestResponse;

defined( 'ABSPATH' ) | die();

class RestResponse {

	public string $message       = 'You do not have permission to perform this action.';
	public bool $success         = false;
	public bool $request_success = true;
	public array $data           = [];

	/**
	 * Get the response object
	 *
	 * @return array{
	 *     message: string,
	 *     success: bool,
	 *     request_success: bool,
	 * }
	 */
	public function get(): array {
		return [
			'message'         => $this->message,
			'success'         => $this->success,
			'request_success' => $this->request_success,
			'data'            => $this->data,
		];
	}
}

```
