Support
1 month ago
Action.php
1 month ago
Cacheable.php
1 month ago
Capability.php
1 month ago
CastAttribute.php
1 month ago
Constant.php
1 month ago
Container.php
1 month ago
Discoverable.php
1 month ago
Event.php
1 month ago
Exportable.php
1 month ago
Importable.php
1 month ago
Middleware.php
1 month ago
Migration.php
1 month ago
Parser.php
1 month ago
Registrable.php
1 month ago
Request.php
4 days ago
Response.php
1 month ago
RewriteRule.php
1 month ago
Rule.php
1 month ago
ServiceProvider.php
1 month ago
Shortcode.php
1 month ago
SomoyInterface.php
4 days ago
Uploader.php
1 month 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 |