createHmacKey($serviceAccountEmail); * ``` */ class CreatedHmacKey { /** * @var HmacKey */ private $hmacKey; /** * @var string */ private $secret; /** * @param HmacKey $hmacKey The HMAC Key object. * @param string $secret The HMAC key secret. */ public function __construct(HmacKey $hmacKey, $secret) { $this->hmacKey = $hmacKey; $this->secret = $secret; } /** * Get the HMAC key object. * * Example: * ``` * $key = $response->hmacKey(); * ``` * * @return HmacKey */ public function hmacKey() { return $this->hmacKey; } /** * Get the HMAC key secret. * * This value will never be returned from the API after first creation. Make * sure to record it for later use immediately upon key creation. * * Example: * ``` * $secret = $response->secret(); * ``` * * @return string */ public function secret() { return $this->secret; } }