library/ServiceCaller.php
private function unserializeResponse($response)
    {
        $result = unserialize($response);
        if ($response !== 'b:0;' && $result === false) {
            throw new \Exception(substr($response, 0, 5000));
        }

        return $result;
    }
private function unserializeResponse($response)
    {
        $result = unserialize($response);
        if ($response !== 'b:0;' && $result === false) {
            throw new \Exception(substr($response, 0, 5000));
        }

        return $result;
    }
private function unserializeResponse ( $ response ) { $ result = unserialize ( $ response ) ; if ( $ response !== 'b:0;' && $ result === false ) { throw new \ Exception ( substr ( $ response , 0 , 5000 ) ) ; } return $ result ; }
Unserializes given string. Throws exception if incorrect string is passed

@param string $response

@throws \Exception

@return mixed
Unserializes given string . Throws exception if incorrect string is passed