abstract class FinancialStatement

Properties

string $reportingPeriod

Financial Statement Reporting Period.

array $balances

Financial Statement balances.

array $accounts

Financial Statement accounts.

array $totals

Financial Statement totals.

array $results

Financial Statement results.

string $statement

Financial Statement printout.

string $indent

Financial Statement printout indent.

string $separator

Financial Statement printout subtotal rule.

string $grand_total

Financial Statement printout total rule.

int $result_indents

Financial Statement printout result indent width.

protected Entity $entity

Financial Statement Entity.

Methods

__construct(ReportingPeriod|null $period = null, Entity|null $entity = null)

Construct Financial Statement for the given period

array
attributes()

Print Financial Statement attributes.

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

Get Statement 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

Details

at line 101
__construct(ReportingPeriod|null $period = null, Entity|null $entity = null)

Construct Financial Statement for the given period

Parameters

ReportingPeriod|null $period
Entity|null $entity

at line 125
array attributes()

Print Financial Statement attributes.

Return Value

array

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

Get Statement Sections.

Parameters

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

Return Value

array

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

Print Statement Title

Parameters

string $statement
string $title

Return Value

string

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

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

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