Created
March 25, 2019 17:24
-
-
Save ger86/28713bd03f0683f4f2e3468db7c51a1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Service\Api; | |
interface ApiRequestInterface { | |
/** | |
* Get | |
* | |
* @param string $path | |
* @param array $queryParams | |
* @return array | |
* @throws App\Model\Exception\RequestException | |
*/ | |
public function get(string $path, array $queryParams): array; | |
/** | |
* Undocumented function | |
* | |
* @param string $path | |
* @param array $postData | |
* @param array $files | |
* @return array | |
* @throws App\Model\Exception\RequestException | |
*/ | |
public function post(string $path, array $postData = [], $files = []): array; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment