Middleware which filters the $options array.

CloneableInstantiable
Methods
public __construct(callable $nextHandler, array $permittedOptions)
public __invoke(Google\ApiCore\Call $call, array $options)
Properties
private $nextHandler
 
  • var callable
private $permittedOptions
 
  • var array
Methods
private arrayFilterRemoveNull(array $arr)
 

Just like array_filter(), but preserves falsey values except null.

  • return array
private isAssoc(array $arr)
 

Determine whether given array is associative.

  • return bool
private pluck( $key, array $arr, $isRequired = true)
 

Pluck a value out of an array.

  • return mixed|null
  • throws InvalidArgumentException
private pluckArray(array $keys, $arr)
 

Pluck a subset of an array.

  • return array
private subsetArray(array $keys, $arr)
 

Return a subset of an array, like pluckArray, without modifying the original array.

  • return array
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only