PHP Трейт Google\Cloud\ClientTrait

Показать файл Открыть проект

Защищенные методы

Метод Описание
getGrpcDependencyStatus ( ) : array Abstract the checking of extensions/classes for unit testing.
getMetaData ( ) : Metadata Abstract the Metadata instantiation for unit testing
onGce ( $httpHandler ) : boolean Abstract the GCECredentials call so we can mock it in the unit tests!

Приватные методы

Метод Описание
configureAuthentication ( array $config ) : array Fetch and validate the keyfile and set the project ID.
detectProjectId ( array $config ) : string Detect and return a project ID.
getConnectionType ( array $config ) : string Get either a gRPC or REST connection based on the provided config and system settings.
getKeyFile ( array $config = [] ) : array Get a keyfile.

Описание методов

getGrpcDependencyStatus() защищенный Метод

Abstract the checking of extensions/classes for unit testing.
protected getGrpcDependencyStatus ( ) : array
Результат array

getMetaData() защищенный Метод

Abstract the Metadata instantiation for unit testing
protected getMetaData ( ) : Metadata
Результат Google\Cloud\Compute\Metadata

onGce() защищенный Метод

Abstract the GCECredentials call so we can mock it in the unit tests!
protected onGce ( $httpHandler ) : boolean
Результат boolean