<?php
/**
 * Class Google\Site_Kit\Modules\Reader_Revenue_Manager\Datapoints\Get_User_Settings
 *
 * @package   Google\Site_Kit\Modules\Reader_Revenue_Manager\Datapoints
 * @copyright 2026 Google LLC
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://sitekit.withgoogle.com
 */

namespace Google\Site_Kit\Modules\Reader_Revenue_Manager\Datapoints;

use Google\Site_Kit\Core\REST_API\Data_Request;

/**
 * Class for the Reader Revenue Manager user settings retrieval datapoint.
 *
 * @since 1.185.0
 * @access private
 * @ignore
 */
class Get_User_Settings extends User_Settings_Datapoint {

	/**
	 * Creates a request object.
	 *
	 * @since 1.185.0
	 *
	 * @param Data_Request $data_request Data request object.
	 * @return callable Closure that returns Reader Revenue Manager user settings.
	 */
	public function create_request( Data_Request $data_request ) {
		return function () {
			return $this->get_user_settings();
		};
	}
}
