PluginProbe
Version Info – Server Health Monitor, PHP & MySQL Version Display, Environment Indicators / trunk
Version Info – Server Health Monitor, PHP & MySQL Version Display, Environment Indicators vtrunk
2.1.0 2.0.3 2.0.2 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 2.0.0 2.0.1
version-info / includes / ProviderInterface.php

ProviderInterface.php in Version Info – Server Health Monitor, PHP & MySQL Version Display, Environment Indicators trunk, at includes/ProviderInterface.php

39 lines 946 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:disable WordPress.Files.FileName -- PSR-4 class file naming; renaming would break the autoloader.
2
3
4 namespace GauchoPlugins\VersionInfo;
5
6 defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
7
8 /**
9 * Contract implemented by every System Resources data provider.
10 */
11 interface ProviderInterface {
12
13 // phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid -- established camelCase provider API since 2.0; renaming would break every implementation.
14
15 /**
16 * Returns the human-readable provider name.
17 */
18 public function getName();
19
20 /**
21 * Returns the provider key.
22 */
23 public function getKey();
24
25 /**
26 * Whether this provider can collect data on the current host.
27 */
28 public function isAvailable();
29
30 // phpcs:enable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
31
32 /**
33 * Collects the provider's data.
34 *
35 * @return array<string, mixed>
36 */
37 public function collect();
38 }
39