Documentation

GoogleTimeToken

Google Translate time token manager.

Handles generation and retrieval of time tokens for Google Translate API.

Tags
since
3.0.0

Table of Contents

Methods

get()  : array<string|int, int>|null
Get the time token to use for Google, generating a new one if necessary.
regenerate()  : array<string|int, int>|null
Generate a new token for Google.

Methods

get()

Get the time token to use for Google, generating a new one if necessary.

public static get() : array<string|int, int>|null
Tags
psalm-return

list{int, int}|null

Return values
array<string|int, int>|null

Token pair [time, hash] or null on failure

regenerate()

Generate a new token for Google.

public static regenerate() : array<string|int, int>|null
Tags
psalm-return

list{int, int}|null

Return values
array<string|int, int>|null

Token pair [time, hash] or null on failure


        
On this page

Search results