class BalanceSheet extends FinancialStatement

Constants

TITLE

Balance Sheet Title

ASSETS

Balance Sheet Sections

LIABILITIES

EQUITY

RECONCILIATION

TOTAL_ASSETS

TOTAL_LIABILITIES

NET_ASSETS

TOTAL_RECONCILIATION

NET_PROFIT

TOTAL_EQUITY

Properties

string $reportingPeriod

Financial Statement Reporting Period.

from  FinancialStatement
array $balances

Financial Statement balances.

from  FinancialStatement
array $accounts

Financial Statement accounts.

from  FinancialStatement
array $totals

Financial Statement totals.

from  FinancialStatement
array $results

Financial Statement results.

from  FinancialStatement
string $statement

Financial Statement printout.

from  FinancialStatement
string $indent

Financial Statement printout indent.

from  FinancialStatement
string $separator

Financial Statement printout subtotal rule.

from  FinancialStatement
string $grand_total

Financial Statement printout total rule.

from  FinancialStatement
int $result_indents

Financial Statement printout result indent width.

from  FinancialStatement
protected Entity $entity

Financial Statement Entity.

from  FinancialStatement
array $period

Balance Sheet period.

Methods

__construct(string|null $endDate = null, Entity|null $entity = null)

Construct Balance Sheet as at the given end date

array
attributes()

Print Income Statement attributes.

array
getSections(string|Carbon $startDate = null, string|Carbon $endDate = null, bool $fullbalance = true)

Get Balance Sheet Sections.

string
printTitle(string $statement, string $title)

Print Statement Title

string
printSection(string $section, string $statement, string $indent, int $amountFactor = 1)

Print Statement Section

string
printTotal(string $section, string $statement, string $indent, int $amountFactor = 1, int $indentFactor = 1)

Print Statement Total

string
printResult(string $result, string $statement, string $indent, int $indentFactor)

Print Statement Result

static array
getAccountTypes()

Get Balance Sheet Account Types.

void
toString()

Print Balance Sheet.

Details

at line 59
__construct(string|null $endDate = null, Entity|null $entity = null)

Construct Balance Sheet as at the given end date

Parameters

string|null $endDate
Entity|null $entity

at line 110
array attributes()

Print Income Statement attributes.

Return Value

array

at line 118
array getSections(string|Carbon $startDate = null, string|Carbon $endDate = null, bool $fullbalance = true)

Get Balance Sheet Sections.

Parameters

string|Carbon $startDate
string|Carbon $endDate
bool $fullbalance

Return Value

array

in FinancialStatement at line 177
protected string printTitle(string $statement, string $title)

Print Statement Title

Parameters

string $statement
string $title

Return Value

string

in FinancialStatement at line 209
protected string printSection(string $section, string $statement, string $indent, int $amountFactor = 1)

Print Statement Section

Parameters

string $section
string $statement
string $indent
int $amountFactor

Return Value

string

in FinancialStatement at line 236
protected string printTotal(string $section, string $statement, string $indent, int $amountFactor = 1, int $indentFactor = 1)

Print Statement Total

Parameters

string $section
string $statement
string $indent
int $amountFactor
int $indentFactor

Return Value

string

in FinancialStatement at line 258
protected string printResult(string $result, string $statement, string $indent, int $indentFactor)

Print Statement Result

Parameters

string $result
string $statement
string $indent
int $indentFactor

Return Value

string

at line 95
static array getAccountTypes()

Get Balance Sheet Account Types.

Return Value

array

at line 157
void toString()

Print Balance Sheet.

Return Value

void