PHP Class Stripe\Util\Util

Afficher le fichier Open project: stripe/stripe-php Class Usage Examples

Méthodes publiques

Méthode Description
convertStripeObjectToArray ( array $values ) : array Recursively converts the PHP Stripe object to an array.
convertToStripeObject ( array $resp, array $opts ) : Stripe\StripeObject | array Converts a response from the Stripe API to the corresponding PHP object.
isList ( array | mixed $array ) : boolean Whether the provided array (or other) is a list rather than a dictionary.
utf8 ( string | mixed $value ) : string | mixed

Method Details

convertStripeObjectToArray() public static méthode

Recursively converts the PHP Stripe object to an array.
public static convertStripeObjectToArray ( array $values ) : array
$values array The PHP Stripe object to convert.
Résultat array

convertToStripeObject() public static méthode

Converts a response from the Stripe API to the corresponding PHP object.
public static convertToStripeObject ( array $resp, array $opts ) : Stripe\StripeObject | array
$resp array The response from the Stripe API.
$opts array
Résultat Stripe\StripeObject | array

isList() public static méthode

Whether the provided array (or other) is a list rather than a dictionary.
public static isList ( array | mixed $array ) : boolean
$array array | mixed
Résultat boolean True if the given object is a list.

utf8() public static méthode

public static utf8 ( string | mixed $value ) : string | mixed
$value string | mixed A string to UTF8-encode.
Résultat string | mixed The UTF8-encoded string, or the object passed in if it wasn't a string.