File "RestResponse.php"

Full Path: /var/www/html/wordpress/wp-content/plugins/wp-optimize/vendor/team-updraft/lib-onboarding-wizard/Wizard/RestResponse/RestResponse.php
File size: 679 bytes
MIME-type: text/x-php
Charset: utf-8

 
Open Back
<?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,
		];
	}
}