Support
3 weeks ago
Action.php
3 weeks ago
Cacheable.php
3 weeks ago
Capability.php
3 weeks ago
CastAttribute.php
3 weeks ago
Constant.php
3 weeks ago
Container.php
3 weeks ago
Discoverable.php
3 weeks ago
Event.php
3 weeks ago
Exportable.php
3 weeks ago
Importable.php
3 weeks ago
Middleware.php
3 weeks ago
Migration.php
3 weeks ago
Parser.php
3 weeks ago
Registrable.php
3 weeks ago
Request.php
3 weeks ago
Response.php
3 weeks ago
RewriteRule.php
3 weeks ago
Rule.php
3 weeks ago
ServiceProvider.php
3 weeks ago
Shortcode.php
3 weeks ago
Uploader.php
3 weeks ago
Action.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Interface Action Represents a general-purpose action contract. |
| 5 | * Any class implementing this interface should define the `handle` method, |
| 6 | * which encapsulates the logic to be executed for the action. |
| 7 | * This can be used for plugin lifecycle hooks, event listeners, jobs, |
| 8 | * or any task-oriented class that needs a unified callable structure. |
| 9 | * |
| 10 | * @package Framework |
| 11 | * @subpackage Contracts |
| 12 | * @since 1.0.0 |
| 13 | */ |
| 14 | namespace Kirki\Framework\Contracts; |
| 15 | |
| 16 | \defined('ABSPATH') || exit; |
| 17 | interface Action |
| 18 | { |
| 19 | /** |
| 20 | * Execute the action logic. |
| 21 | * |
| 22 | * @return void |
| 23 | * |
| 24 | * @since 1.0.0 |
| 25 | */ |
| 26 | public function handle(); |
| 27 | } |
| 28 |