* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\CircuitBreaker\Contract; /** * In charge of calling the resource and return a response. * Must throw UnavailableService exception if not reachable. */ interface ClientInterface { /** * @param string $resource the URI of the service to be reached * @param array $options the options if needed */ public function request(string $resource, array $options): string; }