Skip to content

Instantly share code, notes, and snippets.

@ger86
Created March 25, 2019 17:24
Show Gist options
  • Save ger86/28713bd03f0683f4f2e3468db7c51a1e to your computer and use it in GitHub Desktop.
Save ger86/28713bd03f0683f4f2e3468db7c51a1e to your computer and use it in GitHub Desktop.
<?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