Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Boost API Client interface.
4 *
5 * @package automattic/jetpack-boost-core
6 */
7
8namespace Automattic\Jetpack\Boost_Core\Contracts;
9
10/**
11 * An interface to build Boost API client.
12 *
13 * Communication with Boost back-end should be done through this interface.
14 */
15interface Boost_API_Client {
16
17    /**
18     * Submit a request to boost API and return response.
19     *
20     * @param string  $path - Request path.
21     * @param mixed[] $payload - Request arguments.
22     * @return mixed
23     */
24    public function post( $path, $payload = array() );
25
26    /**
27     * Make a get request to boost API and return response.
28     *
29     * @param string  $path - Request path.
30     * @param mixed[] $query - Query parameters.
31     * @return mixed
32     */
33    public function get( $path, $query = array() );
34}