HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/plugins/genesis-blocks/lib/Interfaces/ModuleInterface.php
<?php
/**
 * Module Interface
 *
 * @since 0.1.0
 * @package Genesis\Blocks
 */

declare(strict_types=1);
namespace Genesis\Blocks\Interfaces;

/**
 * Module Interface
 * Set methods required for all module Register classes.
 */
interface ModuleInterface {
	/**
	 * Activate Module
	 * Method to Activate this module.
	 *
	 * @since 0.1.0
	 * @param array $context Current environment information.
	 *
	 * @return void
	 */
	public function activate( array $context ) : void;

	/**
	 * Checks if this module is enabled.
	 *
	 * Modules can specify conditions when they should be disabled (other plugin
	 * is active, or in response to a user preference). Can also be used to
	 * quickly disable a module manually by editing the is_enabled return value.
	 *
	 * @since 0.1.0
	 *
	 * @return bool
	 */
	public function is_enabled() : bool;
}