src/Service/GoogleApiService.php
public function setCredentials(?string $gApiServiceAccountCredentialsFilePath = null): string
    {
        $this->client = null;
        $this->getClient($gApiServiceAccountCredentialsFilePath);

        return $this->getCredentialsFilePath();
    }
public function setCredentials(?string $gApiServiceAccountCredentialsFilePath = null): string
    {
        $this->client = null;
        $this->getClient($gApiServiceAccountCredentialsFilePath);

        return $this->getCredentialsFilePath();
    }
public function setCredentials ( ? string $ gApiServiceAccountCredentialsFilePath = null ) : string { $ this -> client = null ; $ this -> getClient ( $ gApiServiceAccountCredentialsFilePath ) ; return $ this -> getCredentialsFilePath ( ) ; }
A helper method allowing to use different credentials during the lifecycle of the application.

@param null|string $gApiServiceAccountCredentialsFilePath

@return string

@throws \Exception
A helper method allowing to use different credentials during the lifecycle of the application .