protected function parseResponse($body)
    {
        $this->totalNumber  = (int)$body->getElementsByTagName('all')->item(0)->nodeValue;
        $this->profileCount = (int)$body->getElementsByTagName('profile')->length;

        if ($this->profileCount > 0) {
            for ($i = 0; $i < $this->profileCount; $i++) {

                $profile = $body->getElementsByTagName('profile')->item($i);

                $this->profiles[$i]['customerID'] = $profile->getElementsByTagName('customerID')->item(0)->nodeValue;
                $this->profiles[$i]['updated']    = $profile->getElementsByTagName('updated')->item(0)->nodeValue;

                if ($profile->getElementsByTagName('payment')->length) {
                    $this->profiles[$i]['payment'] = $profile->getElementsByTagName('payment')->item(0)->nodeValue;
                    $this->profiles[$i]['paymentProfiles'] = $this->parsePaymentProfiles($profile->getElementsByTagName('payment'));
                }
            }
        }
    }
protected function parseResponse($body)
    {
        $this->totalNumber  = (int)$body->getElementsByTagName('all')->item(0)->nodeValue;
        $this->profileCount = (int)$body->getElementsByTagName('profile')->length;

        if ($this->profileCount > 0) {
            for ($i = 0; $i < $this->profileCount; $i++) {

                $profile = $body->getElementsByTagName('profile')->item($i);

                $this->profiles[$i]['customerID'] = $profile->getElementsByTagName('customerID')->item(0)->nodeValue;
                $this->profiles[$i]['updated']    = $profile->getElementsByTagName('updated')->item(0)->nodeValue;

                if ($profile->getElementsByTagName('payment')->length) {
                    $this->profiles[$i]['payment'] = $profile->getElementsByTagName('payment')->item(0)->nodeValue;
                    $this->profiles[$i]['paymentProfiles'] = $this->parsePaymentProfiles($profile->getElementsByTagName('payment'));
                }
            }
        }
    }
protected function parseResponse ( $ body ) { $ this -> totalNumber = ( int ) $ body -> getElementsByTagName ( 'all' ) -> item ( 0 ) -> nodeValue ; $ this -> profileCount = ( int ) $ body -> getElementsByTagName ( 'profile' ) -> length ; if ( $ this -> profileCount > 0 ) { for ( $ i = 0 ; $ i < $ this -> profileCount ; $ i ++ ) { $ profile = $ body -> getElementsByTagName ( 'profile' ) -> item ( $ i ) ; $ this -> profiles [ $ i ] [ 'customerID' ] = $ profile -> getElementsByTagName ( 'customerID' ) -> item ( 0 ) -> nodeValue ; $ this -> profiles [ $ i ] [ 'updated' ] = $ profile -> getElementsByTagName ( 'updated' ) -> item ( 0 ) -> nodeValue ; if ( $ profile -> getElementsByTagName ( 'payment' ) -> length ) { $ this -> profiles [ $ i ] [ 'payment' ] = $ profile -> getElementsByTagName ( 'payment' ) -> item ( 0 ) -> nodeValue ; $ this -> profiles [ $ i ] [ 'paymentProfiles' ] = $ this -> parsePaymentProfiles ( $ profile -> getElementsByTagName ( 'payment' ) ) ; } } } }
Parse the ListProfilesResponse message and save the data to the corresponding attributes

@param \DOMElement $body
Parse the ListProfilesResponse message and save the data to the corresponding attributes