PHP Класс Stripe\Util\Util

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

convertStripeObjectToArray() публичный статический Метод

Recursively converts the PHP Stripe object to an array.
public static convertStripeObjectToArray ( array $values ) : array
$values array The PHP Stripe object to convert.
Результат array

convertToStripeObject() публичный статический Метод

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
Результат Stripe\StripeObject | array

isList() публичный статический Метод

Whether the provided array (or other) is a list rather than a dictionary.
public static isList ( array | mixed $array ) : boolean
$array array | mixed
Результат boolean True if the given object is a list.

utf8() публичный статический Метод

public static utf8 ( string | mixed $value ) : string | mixed
$value string | mixed A string to UTF8-encode.
Результат string | mixed The UTF8-encoded string, or the object passed in if it wasn't a string.