Accountancy
extends AccountancyType
in package
Class representing Accountancy.
Table of Contents
- $accountingItem : array<string|int, mixed>
- Účetní doklad.
- $version : string|null
- addToAccountingItem() : self
- Adds as accountingItem.
- getAccountingItem() : array<string|int, AccountingItemType>
- Gets as accountingItem.
- getVersion() : string
- Gets as version.
- issetAccountingItem() : bool
- isset accountingItem.
- setAccountingItem() : self
- Sets a new accountingItem.
- setVersion() : self
- Sets a new version.
- unsetAccountingItem() : void
- unset accountingItem.
Properties
$accountingItem
Účetní doklad.
private
array<string|int, mixed>
$accountingItem
= []
$version
private
string|null
$version
= null
Methods
addToAccountingItem()
Adds as accountingItem.
public
addToAccountingItem(AccountingItemType $accountingItem) : self
Účetní doklad.
Parameters
- $accountingItem : AccountingItemType
Return values
self —getAccountingItem()
Gets as accountingItem.
public
getAccountingItem() : array<string|int, AccountingItemType>
Účetní doklad.
Return values
array<string|int, AccountingItemType> —getVersion()
Gets as version.
public
getVersion() : string
Return values
string —issetAccountingItem()
isset accountingItem.
public
issetAccountingItem(int|string $index) : bool
Účetní doklad.
Parameters
- $index : int|string
Return values
bool —setAccountingItem()
Sets a new accountingItem.
public
setAccountingItem(array<string|int, AccountingItemType> $accountingItem) : self
Účetní doklad.
Parameters
- $accountingItem : array<string|int, AccountingItemType>
Return values
self —setVersion()
Sets a new version.
public
setVersion(string $version) : self
Parameters
- $version : string
Return values
self —unsetAccountingItem()
unset accountingItem.
public
unsetAccountingItem(int|string $index) : void
Účetní doklad.
Parameters
- $index : int|string