app/Providers/CurrencyExchangeService/AbstractCurrencyExchangeService.php
/**
     * makes request, gets the xml data from the end point converts it to xml
     * @param string $endPoint
     *
     * @return bool
     * @throws \GuzzleHttp\Exception\GuzzleException
     */
makes request, gets the xml data from the end point converts it to xml
@param string $endPoint


makes request gets the xml data from the end point converts it to xml @param string $endPoint
protected static function makeRequest(string $endPoint): bool
    {
        $client      = new \GuzzleHttp\Client();
        $response    = $client->request('GET', $endPoint)->getBody()->getContents();
        $responseXml = simplexml_load_string($response);
        if ($responseXml instanceof \SimpleXMLElement) {
            self::$ratesXml = $responseXml;
            return true;
        }
        return false;
    }
protected static function makeRequest ( string $ endPoint ) : bool { $ client = new \ GuzzleHttp \ Client ( ) ; $ response = $ client -> request ( 'GET' , $ endPoint ) -> getBody ( ) -> getContents ( ) ; $ responseXml = simplexml_load_string ( $ response ) ; if ( $ responseXml instanceof \ SimpleXMLElement ) { self :: $ ratesXml = $ responseXml ; return true ; } return false ; }
makes request, gets the xml data from the end point converts it to xml
 @param string $endPoint
makes request gets the xml data from the end point converts it to xml @param string $endPoint