interface-proxy.php in Parse.ly 3.3.0, at src/RemoteAPI/interface-proxy.php
| 1 | <?php |
| 2 | /** |
| 3 | * Remote API: Proxy interface |
| 4 | * |
| 5 | * @package Parsely |
| 6 | * @since 3.2.0 |
| 7 | */ |
| 8 | |
| 9 | declare(strict_types=1); |
| 10 | |
| 11 | namespace Parsely\RemoteAPI; |
| 12 | |
| 13 | use WP_Error; |
| 14 | |
| 15 | /** |
| 16 | * Remote API Proxy Interface. |
| 17 | */ |
| 18 | interface Proxy { |
| 19 | /** |
| 20 | * Returns the items provided by this interface. |
| 21 | * |
| 22 | * @param array<string, mixed> $query The query arguments to send to the remote API. |
| 23 | * @return WP_Error|array<string, mixed> |
| 24 | */ |
| 25 | public function get_items( array $query ); |
| 26 | } |
| 27 |