PHP Class EasyPost\Util

Show file Open project: easypost/easypost-php

Public Methods

Method Description
convertEasyPostObjectToArray ( mixed $values ) : array convert EasyPost object to an array
convertToEasyPostObject ( mixed $response, string $apiKey, string $parent = null, string $name = null ) : array convert input to an EasyPost object
isList ( $array ) : boolean check if input is a list

Method Details

convertEasyPostObjectToArray() public static method

convert EasyPost object to an array
public static convertEasyPostObjectToArray ( mixed $values ) : array
$values mixed
return array

convertToEasyPostObject() public static method

convert input to an EasyPost object
public static convertToEasyPostObject ( mixed $response, string $apiKey, string $parent = null, string $name = null ) : array
$response mixed
$apiKey string
$parent string
$name string
return array

isList() public static method

check if input is a list
public static isList ( $array ) : boolean
$array
return boolean