src/vendor/stripe/stripe-php/lib/Util/Util.php
/**
     * Recursively converts the PHP Stripe object to an array.
     *
     * @param array $values The PHP Stripe object to convert.
     * @return array
     */
Recursively converts the PHP Stripe object to an array.
@param array $values The PHP Stripe object to convert.
@return array
Recursively converts the PHP Stripe object to an array . @param array $values The PHP Stripe object to convert . @return array
public static function convertStripeObjectToArray($values)
    {
        $results = array();
        foreach ($values as $k => $v) {
            if ($k[0] == '_') {
                continue;
            }
            if ($v instanceof Object) {
                $results[$k] = $v->__toArray(true);
            } elseif (is_array($v)) {
                $results[$k] = self::convertStripeObjectToArray($v);
            } else {
                $results[$k] = $v;
            }
        }
        return $results;
    }
public static function convertStripeObjectToArray ( $ values ) { $ results = array ( ) ; foreach ( $ values as $ k => $ v ) { if ( $ k [ 0 ] == '_' ) { continue ; } if ( $ v instanceof Object ) { $ results [ $ k ] = $ v -> __toArray ( true ) ; } elseif ( is_array ( $ v ) ) { $ results [ $ k ] = self :: convertStripeObjectToArray ( $ v ) ; } else { $ results [ $ k ] = $ v ; } } return $ results ; }
Recursively converts the PHP Stripe object to an array.
Recursively converts the PHP Stripe object to an array .
// FIXME: this is an encapsulation violation