original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Handles the multidimensional param arrays during model creation
  @param array $response
  @param string $resourceName
  @return array|null|Base
docstring_tokens: Handles the multidimensional param arrays during model creation