Menu

## Ledger
in package

Ledger.php : 17

##### Tags

author

  BitPay Integrations integrations@bitpay.com

license

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

see
  https://bitpay.readme.io/reference/ledgers

  REST API Ledgers

### Table of Contents

#### Properties

$balance : float|null
$currency : string|null

#### Methods

__construct() : mixed
getBalance() : float|null
  Gets Ledger balance in the corresponding currency
getCurrency() : string|null
  Gets Ledger currency
setBalance() : void
  Sets Ledger balance in the corresponding currency
setCurrency() : void
  Sets Ledger currency
toArray() : array<string|int, mixed>
  Gets Ledger as array

### Properties

#### $balance

Ledger.php : 20
`protected float|null $balance = null`

#### $currency

Ledger.php : 19
`protected string|null $currency = null`

### Methods

#### __construct()

Ledger.php : 22
`public __construct() : mixed`

#### getBalance()

Ledger.php : 51

Gets Ledger balance in the corresponding currency

`public getBalance() : float|null`

##### Return values

float|null —

the Ledger balance

#### getCurrency()

Ledger.php : 31

Gets Ledger currency

`public getCurrency() : string|null`

##### Return values

string|null —

the Ledger currency

#### setBalance()

Ledger.php : 61

Sets Ledger balance in the corresponding currency

`public setBalance(float $balance) : void`

##### Parameters

$balance : float

  the Ledger balance

#### setCurrency()

Ledger.php : 41

Sets Ledger currency

`public setCurrency(string $currency) : void`

##### Parameters

$currency : string

  the Ledger currency

#### toArray()

Ledger.php : 71

Gets Ledger as array

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

##### Return values

array<string|int, mixed> —

Ledger as array

## Search results