Documentation

Section
in package
implements Hydratable

Interfaces, Classes and Traits

Hydratable

Table of Contents

$codes  : array<string|int, mixed>
$credit  : bool
$ledgerUuids  : array<string|int, mixed>
$names  : array<string|int, mixed>
fromArray()  : static
Construct a section from array data.
hydrate()  : bool
validate()  : void
Ensure the data is valid.

Properties

$codes

public array<string|int, mixed> $codes = []

List of account codes belonging to this section.

$credit

public bool $credit

Set when reporting goes in the credit column.

$ledgerUuids

public array<string|int, mixed> $ledgerUuids = []

Ledger IDs of accounts in this section.

$names

public array<string|int, mixed> $names = []

Names of this section.

Methods

fromArray()

Construct a section from array data.

public static fromArray( $data[, array<string|int, mixed>|null $options = [] ]) : static
Parameters
$data :
$options : array<string|int, mixed>|null = []

Passed to validate().

Tags
throws
Breaker
Return values
static

hydrate()

public hydrate(mixed $config[, array<string|int, mixed>|null $options = [] ]) : bool
Parameters
$config : mixed
$options : array<string|int, mixed>|null = []
Tags
inheritDoc
Return values
bool

validate()

Ensure the data is valid.

public validate([array<string|int, mixed>|null $options = [] ]) : void
Parameters
$options : array<string|int, mixed>|null = []

checkAccount [default true] will validate account codes

Tags
throws
Breaker
Return values
void

Search results