HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/plugin-check/includes/Checker/Check_Runner.php
<?php
/**
 * Interface WordPress\Plugin_Check\Checker\Check_Runner
 *
 * @package plugin-check
 */

namespace WordPress\Plugin_Check\Checker;

use Exception;

/**
 * Interface for runner classes like AJAX runner or CLI runner.
 *
 * @since 1.0.0
 */
interface Check_Runner {

	/**
	 * Determines if the current request is intended for the plugin checker.
	 *
	 * @since 1.0.0
	 *
	 * @return boolean Returns true if the check is for plugin else false.
	 */
	public static function is_plugin_check();

	/**
	 * Prepares the environment for running the requested checks.
	 *
	 * @since 1.0.0
	 *
	 * @return callable Cleanup function to revert any changes made here.
	 *
	 * @throws Exception Thrown exception when preparation fails.
	 */
	public function prepare();

	/**
	 * Runs the requested checks against the plugin context and returns the results.
	 *
	 * @since 1.0.0
	 *
	 * @return Check_Result Object containing all check results.
	 *
	 * @throws Exception Thrown exception if a check fails.
	 */
	public function run();
}