private function _handleRecursive($response, $resourceName)
    {
        $result = null;
        if (isset($response['id'])) {
            $result = $this->_convertResponseToModel($response, $resourceName);
        } else if (!is_null($response)) {
            $paymentArray = array();
            foreach ($response as $paymentData) {
                array_push($paymentArray, $this->_convertResponseToModel($paymentData, $resourceName));
            }
            $result = $paymentArray;
        }
        return $result;
    }
private function _handleRecursive($response, $resourceName)
    {
        $result = null;
        if (isset($response['id'])) {
            $result = $this->_convertResponseToModel($response, $resourceName);
        } else if (!is_null($response)) {
            $paymentArray = array();
            foreach ($response as $paymentData) {
                array_push($paymentArray, $this->_convertResponseToModel($paymentData, $resourceName));
            }
            $result = $paymentArray;
        }
        return $result;
    }
private function _handleRecursive ( $ response , $ resourceName ) { $ result = null ; if ( isset ( $ response [ 'id' ] ) ) { $ result = $ this -> _convertResponseToModel ( $ response , $ resourceName ) ; } else if ( ! is_null ( $ response ) ) { $ paymentArray = array ( ) ; foreach ( $ response as $ paymentData ) { array_push ( $ paymentArray , $ this -> _convertResponseToModel ( $ paymentData , $ resourceName ) ) ; } $ result = $ paymentArray ; } return $ result ; }
Handles the multidimensional param arrays during model creation
@param array $response
@param string $resourceName
@return array|null|Base
Handles the multidimensional param arrays during model creation