Copied!

The GrpcFallbackTransportOptions class provides typing to the associative array of options used to configure {@see \Google\ApiCore\Transport\GrpcFallbackTransport}.

CloneableInstantiable
Methods
public __construct(array $options)
 
  • param array $options { Config options used to construct the gRPC Fallback transport. @type callable $clientCertSource A callable which returns the client cert as a string. @type callable $httpHandler A handler used to deliver PSR-7 requests. @type null|false|LoggerInterface A PSR-3 logger interface instance. }
public offsetExists( $offset) : bool
public offsetGet( $offset)
public offsetSet( $offset, $value) : void
 
  • throws \BadMethodCallException
public offsetUnset( $offset) : void
 
  • throws \BadMethodCallException
public setClientCertSource(?callable $clientCertSource)
 
  • param ?callable $clientCertSource
public setHttpHandler(?callable $httpHandler)
public setLogger(Psr\Log\LoggerInterface|false|?null $logger)
 
  • param null|false|\LoggerInterface $logger
public toArray() : array
Properties
private ?Closure $clientCertSource
private ?Closure $httpHandler
private Psr\Log\LoggerInterface|false|?null $logger
Methods
private fromArray(array $arr) : void
 

Sets the array of options as class properites.

  • param array $arr See the constructor for the list of supported options.
private static validateFileExists(string $filePath)
 
  • param string $filePath
  • throws \ValidationException
Methods
private static validateFileExists(string $filePath)
 
  • param string $filePath
  • throws \ValidationException
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration