Ledger
in package
Tags
Table of Contents
Properties
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
protected
float|null
$balance
= null
$currency
protected
string|null
$currency
= null
Methods
__construct()
public
__construct() : mixed
getBalance()
Gets Ledger balance in the corresponding currency
public
getBalance() : float|null
Return values
float|null —the Ledger balance
getCurrency()
Gets Ledger currency
public
getCurrency() : string|null
Return values
string|null —the Ledger currency
setBalance()
Sets Ledger balance in the corresponding currency
public
setBalance(float $balance) : void
Parameters
- $balance : float
-
the Ledger balance
setCurrency()
Sets Ledger currency
public
setCurrency(string $currency) : void
Parameters
- $currency : string
-
the Ledger currency
toArray()
Gets Ledger as array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Ledger as array