Menu

## TokenClient
in package

TokenClient.php : 23

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 : 25
`private static self|null $instance = null`

#### $restCli

TokenClient.php : 26
`private RESTcli $restCli`

### Methods

#### getInstance()

TokenClient.php : 39

Factory method for Token Client.

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

##### Parameters

$restCli : RESTcli

##### Return values

static

#### getTokens()

TokenClient.php : 54

Get Tokens.

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

##### Tags

throws
  BitPayGenericException
throws
  BitPayApiException

##### Return values

array<string|int, mixed>

#### __construct()

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

##### Parameters

$restCli : RESTcli

## Search results