endpoint-interface.php
16 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JFB_Components\Rest_Api\Interfaces; |
| 4 | |
| 5 | interface Endpoint_Interface { |
| 6 | |
| 7 | public function get_method(): string; |
| 8 | |
| 9 | public function has_permission(): bool; |
| 10 | |
| 11 | public function get_args(): array; |
| 12 | |
| 13 | public function process( \WP_REST_Request $request ): \WP_REST_Response; |
| 14 | |
| 15 | } |
| 16 |