|
Server : LiteSpeed System : Linux server900.shared.spaceship.host 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64 User : kvzyqrttyz ( 5084) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/kvzyqrttyz/monolog50.com/wp-content/plugins/amp/src/Infrastructure/ | |
|
Path: //home/kvzyqrttyz/monolog50.com/wp-content/plugins/amp/src/Infrastructure/Conditional.php
Size: 740 B
Permissions: 0644
<?php
/**
* Interface Conditional.
*
* @package AmpProject\AmpWP
*/
namespace AmpProject\AmpWP\Infrastructure;
/**
* Something that can be instantiated conditionally.
*
* A class marked as being conditionally can be asked whether it should be
* instantiated through a static method. An example would be a service that is
* only available on the admin backend.
*
* This allows for a more systematic and automated optimization of how the
* different parts of the plugin are enabled or disabled.
*
* @since 2.0
* @internal
*/
interface Conditional {
/**
* Check whether the conditional object is currently needed.
*
* @return bool Whether the conditional object is needed.
*/
public static function is_needed();
}