Builds a PSR-7 request from a set of request information.
- internal
CloneableInstantiable
| Methods |
public __construct(string $baseUri, string $restConfigPath)
|
public build(string $path, Google
|
public buildUriWithQuery( $uri, array $query)
|
public pathExists(string $path)
|
public static validate(array $arr, array $requiredKeys)
|
public static validateNotNull(array $arr, array $requiredKeys)
|
| Properties |
| protected $baseUri = NULL |
| Methods |
protected buildUri(string $path, array $queryParams)
|
| Properties |
| private $restConfig = NULL |
| Methods |
| private arrayFilterRemoveNull(array $arr) Just like array_filter(), but preserves falsey values except null.
|
| private arrayMergeRecursive(array $array1, array $array2) A method, similar to PHP's
|
private buildBindings(array $placeholders, Google
|
private constructBodyAndQueryParameters(Google
|
| private getConfigsForUriTemplates(array $config) Create a list of all possible configs using the additionalBindings
|
| private isAssoc(array $arr) Determine whether given array is associative.
|
| private pluck(string $key, array $arr, bool $isRequired = true) Pluck a value out of an array.
|
| private pluckArray(array $keys, array $arr) Pluck a subset of an array.
|
| private subsetArray(array $keys, array $arr) Return a subset of an array, like pluckArray, without modifying the original array.
|
| private tryRenderPathTemplate(string $uriTemplate, array $bindings) Try to render the resource name. The rendered resource name will always contain a leading '/'
|
private static validateFileExists(string $filePath)
|
| private static validateImpl( $arr, $requiredKeys, $allowNull) |
| Methods |
public static validate(array $arr, array $requiredKeys)
|
private static validateFileExists(string $filePath)
|
| private static validateImpl( $arr, $requiredKeys, $allowNull) |
public static validateNotNull(array $arr, array $requiredKeys)
|