WithoutNamespace
2 weeks ago
AbstractPlugin.php
2 weeks ago
Activateable.php
2 weeks ago
ActivationAware.php
2 weeks ago
ActivationTracker.php
2 weeks ago
Conditional.php
2 weeks ago
Deactivateable.php
2 weeks ago
Hookable.php
2 weeks ago
HookableCollection.php
2 weeks ago
HookableParent.php
2 weeks ago
HookablePluginDependant.php
2 weeks ago
PluginAccess.php
2 weeks ago
SlimPlugin.php
2 weeks ago
TemplateLoad.php
2 weeks ago
Conditional.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace FSVendor\WPDesk\PluginBuilder\Plugin; |
| 4 | |
| 5 | /** |
| 6 | * Something that can be instantiated/hooked conditionally. |
| 7 | * |
| 8 | * @see https://github.com/mwpd/basic-scaffold/blob/master/src/Infrastructure/Conditional.php by Alain Schlesser |
| 9 | * |
| 10 | * @package WPDesk\PluginBuilder\Plugin |
| 11 | */ |
| 12 | interface Conditional |
| 13 | { |
| 14 | /** |
| 15 | * Check whether the conditional object is currently needed. |
| 16 | * |
| 17 | * @return bool Whether the conditional object is needed. |
| 18 | */ |
| 19 | public static function is_needed(); |
| 20 | } |
| 21 |