protected function extractMetaData(ResponseInterface $response)
    {
        $headers = $this->findMetaHeaders($response);

        if (!count($headers)) {
            return [];
        }

        $metaData = [];

        foreach ($headers as $header) {
            $metaData[$header] = $response->getHeaderLine($header);
        }

        return $metaData;
    }
protected function extractMetaData(ResponseInterface $response)
    {
        $headers = $this->findMetaHeaders($response);

        if (!count($headers)) {
            return [];
        }

        $metaData = [];

        foreach ($headers as $header) {
            $metaData[$header] = $response->getHeaderLine($header);
        }

        return $metaData;
    }
protected function extractMetaData ( ResponseInterface $ response ) { $ headers = $ this -> findMetaHeaders ( $ response ) ; if ( ! count ( $ headers ) ) { return [ ] ; } $ metaData = [ ] ; foreach ( $ headers as $ header ) { $ metaData [ $ header ] = $ response -> getHeaderLine ( $ header ) ; } return $ metaData ; }
Extracts meta data from Object's response headers.

@param \Psr\Http\Message\ResponseInterface $response

@return array
Extracts meta data from Object s response headers .