class IncomeStatement extends FinancialStatement

Constants

TITLE

Income Statement Title

OPERATING_REVENUES

Income Statement Sections

NON_OPERATING_REVENUES

OPERATING_EXPENSES

NON_OPERATING_EXPENSES

GROSS_PROFIT

TOTAL_REVENUE

TOTAL_EXPENSES

NET_PROFIT

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

Income Statement period.

Methods

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

Construct Income Statement for the given period.

array
attributes()

Income Statement attributes.

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

Get Cash Flow Statement Sections and Results.

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 Income Statement Account Types.

static array
getResults(int|string $month, int|string $year, Entity|null $entity = null)

Get Income Statement Account Types.

void
toString()

Print Income Statement.

Details

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

Construct Income Statement for the given period.

Parameters

string|null $startDate
string|null $endDate
Entity|null $entity

at line 193
array attributes()

Income Statement attributes.

Return Value

array

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

Get Cash Flow Statement Sections and Results.

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 100
static array getAccountTypes()

Get Income Statement Account Types.

Return Value

array

at line 117
static array getResults(int|string $month, int|string $year, Entity|null $entity = null)

Get Income Statement Account Types.

Parameters

int|string $month
int|string $year
Entity|null $entity

Return Value

array

at line 228
void toString()

Print Income Statement.

Return Value

void