job-it.php
2 years ago
job-logger-it.php
2 years ago
once-job-it.php
2 years ago
recurring-job-it.php
2 years ago
self-execution-job-it.php
2 years ago
time-based-it.php
2 years ago
job-it.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Jobs\Interfaces; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die(); |
| 9 | } |
| 10 | |
| 11 | interface Job_It { |
| 12 | |
| 13 | public function schedule(): int; |
| 14 | |
| 15 | public function set_hook( string $hook ); |
| 16 | |
| 17 | public function get_hook(): string; |
| 18 | |
| 19 | public function set_args( array $args ); |
| 20 | |
| 21 | public function get_args(): array; |
| 22 | |
| 23 | public function set_arg( $name, $value ); |
| 24 | |
| 25 | public function get_arg( $name ); |
| 26 | |
| 27 | public function unschedule(); |
| 28 | |
| 29 | public function is_scheduled(): bool; |
| 30 | |
| 31 | } |
| 32 |