HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/1526/task/1923/cwd/vcz/wp-content/plugins/better-wp-security/core/lib/tools/Tool.php
<?php

namespace iThemesSecurity\Lib\Tools;

use iThemesSecurity\Lib\Result;

interface Tool {
	/**
	 * Gets the Tool's slug.
	 *
	 * @return string
	 */
	public function get_slug(): string;

	/**
	 * Gets the Tool's module.
	 *
	 * @return string
	 */
	public function get_module(): string;

	/**
	 * Can this tool be run.
	 *
	 * @return bool
	 */
	public function is_available(): bool;

	/**
	 * Gets the condition definition in which this tool can be run.
	 *
	 * @return array
	 */
	public function get_condition(): array;

	/**
	 * Gets the Tool's title.
	 *
	 * @return string
	 */
	public function get_title(): string;

	/**
	 * Gets the Tool's description.
	 *
	 * @return string
	 */
	public function get_description(): string;

	/**
	 * Gets the Tool's search keywords.
	 *
	 * @return string[]
	 */
	public function get_keywords(): array;

	/**
	 * Gets the Tool's help content.
	 *
	 * @return string
	 */
	public function get_help(): string;

	/**
	 * Is this a toggleable tool.
	 *
	 * @return bool
	 */
	public function is_toggleable(): bool;

	/**
	 * If this is a scheduled tool, returns the schedule id.
	 *
	 * @return string
	 */
	public function get_schedule(): string;

	/**
	 * If this Tool accepts user input, returns the JSON Schema for the form.
	 *
	 * @return array
	 */
	public function get_form(): array;

	/**
	 * Runs the tool.
	 *
	 * @param array $form User provided form data, validated and sanitized according to the Schema.
	 *
	 * @return Result
	 */
	public function run( array $form = [] ): Result;
}