Beancount PHP Parser Documentation

Commodity
in package
implements DirectiveInterface

FinalYes

Table of Contents

Interfaces

DirectiveInterface

Properties

$currency  : string
$date  : string
$metadata  : array<string, mixed>

Methods

__construct()  : mixed
getCurrency()  : string
getDate()  : string
getDirectiveType()  : string
getMetadata()  : array<string, mixed>
toArray()  : array<string, mixed>

Properties

$metadata

private array<string, mixed> $metadata = []

Methods

__construct()

public __construct(string $date, string $currency[, array<string, mixed> $metadata = [] ]) : mixed
Parameters
$date : string
$currency : string
$metadata : array<string, mixed> = []

getCurrency()

public getCurrency() : string
Return values
string

getDate()

public getDate() : string
Return values
string

getDirectiveType()

public getDirectiveType() : string
Return values
string

getMetadata()

public getMetadata() : array<string, mixed>
Return values
array<string, mixed>

toArray()

public toArray() : array<string, mixed>
Return values
array<string, mixed>

        
On this page

Search results