protected function parseResponse( $data ) {
            if (!array_key_exists($this->arrayKey, $data)) {
                throw new \Paysafe\PaysafeException('Missing array key from results');
            }
            foreach ($data[$this->arrayKey] as $row) {
                array_push($this->results, new $this->className($row));
            }

            $this->nextPage = null;

            if (array_key_exists('links', $data)) {
                foreach ($data['links'] as $link) {
                    if ($link['rel'] == 'next') {
                        $this->nextPage = new \Paysafe\Link($link);
                    }
                }
            }
        }
protected function parseResponse( $data ) {
            if (!array_key_exists($this->arrayKey, $data)) {
                throw new \Paysafe\PaysafeException('Missing array key from results');
            }
            foreach ($data[$this->arrayKey] as $row) {
                array_push($this->results, new $this->className($row));
            }

            $this->nextPage = null;

            if (array_key_exists('links', $data)) {
                foreach ($data['links'] as $link) {
                    if ($link['rel'] == 'next') {
                        $this->nextPage = new \Paysafe\Link($link);
                    }
                }
            }
        }
protected function parseResponse ( $ data ) { if ( ! array_key_exists ( $ this -> arrayKey , $ data ) ) { throw new \ Paysafe \ PaysafeException ( 'Missing array key from results' ) ; } foreach ( $ data [ $ this -> arrayKey ] as $ row ) { array_push ( $ this -> results , new $ this -> className ( $ row ) ) ; } $ this -> nextPage = null ; if ( array_key_exists ( 'links' , $ data ) ) { foreach ( $ data [ 'links' ] as $ link ) { if ( $ link [ 'rel' ] == 'next' ) { $ this -> nextPage = new \ Paysafe \ Link ( $ link ) ; } } } }
Parse the response for the result set and next page.

@param type $data
@throws PaysafeException
Parse the response for the result set and next page .