Stores an HTTP Client in order to prevent multiple instantiations.

CloneableInstantiable
Methods
public static getHttpClient()
 

Get the stored HTTP Client, or null.

  • return ClientInterface|null
public static setHttpClient(?GuzzleHttp\ClientInterface $client = NULL)
 

Cache an HTTP Client for later calls.

Passing null will unset the cached client.

  • return void
Properties
private static $httpClient
 
  • var ClientInterface|null
Properties
private static $httpClient
 
  • var ClientInterface|null
Methods
public static getHttpClient()
 

Get the stored HTTP Client, or null.

  • return ClientInterface|null
public static setHttpClient(?GuzzleHttp\ClientInterface $client = NULL)
 

Cache an HTTP Client for later calls.

Passing null will unset the cached client.

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