PHP 클래스 Stripe\Util\Util

파일 보기 프로젝트 열기: stripe/stripe-php 1 사용 예제들

공개 메소드들

메소드 설명
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.