Menu

## TokenClient
in package

TokenClient.php : 20

Handles interactions with the token endpoints.

##### Tags

author

  BitPay Integrations integrations@bitpay.com

license

  http://www.opensource.org/licenses/mit-license.php MIT

### Table of Contents

#### Properties

$instance : self|null
$restCli : RESTcli

#### Methods

getInstance() : static
  Factory method for Token Client.
getTokens() : array<string|int, mixed>
  Get Tokens.
__construct() : mixed

### Properties

#### $instance

TokenClient.php : 22
`private static self|null $instance = null`

#### $restCli

TokenClient.php : 23
`private RESTcli $restCli`

### Methods

#### getInstance()

TokenClient.php : 36

Factory method for Token Client.

`public static getInstance(RESTcli $restCli) : static`

##### Parameters

$restCli : RESTcli

##### Return values

static

#### getTokens()

TokenClient.php : 51

Get Tokens.

`public getTokens() : array<string|int, mixed>`

##### Tags

throws
  BitPayException
throws
  JsonException

##### Return values

array<string|int, mixed>

#### __construct()

TokenClient.php : 25
`private __construct(RESTcli $restCli) : mixed`

##### Parameters

$restCli : RESTcli

## Search results