Documentation

Statementor extends Sand
in package
uses Logging

Description of Statementor.

Tags
author

vitex

Table of Contents

Properties

$dateFormat  : string
DateTime Formating eg. 2021-08-01T10:00:00.0Z.
$dateTimeFormat  : string
DateTime Formating eg. 2021-08-01T10:00:00.0Z.
$since  : DateTime
$until  : DateTime
$accountNumber  : string
$statementLine  : string

Methods

__construct()  : mixed
download()  : array<string|int, mixed>
Save Statement PDF files.
getSince()  : DateTime
Since time getter.
getStatements()  : array<string|int, mixed>
Obtain Statements from RB.
getUntil()  : DateTime
Until time getter.
setAccountNumber()  : self
Set AccountNumber for further operations.
setScope()  : DatePeriod
Prepare processing interval.
setStatementLine()  : self
Set "Statement Line".

Properties

$dateFormat

DateTime Formating eg. 2021-08-01T10:00:00.0Z.

public static string $dateFormat = 'Y-m-d'

$dateTimeFormat

DateTime Formating eg. 2021-08-01T10:00:00.0Z.

public static string $dateTimeFormat = 'Y-m-d\TH:i:s.0\Z'

$statementLine

private string $statementLine = 'MAIN'

Methods

__construct()

public __construct([string $accountNumber = '' ][, string $scope = '' ]) : mixed
Parameters
$accountNumber : string = ''
$scope : string = ''

download()

Save Statement PDF files.

public download(string $saveTo, array<string|int, mixed> $statements[, string $format = 'pdf' ][, string $currencyCode = 'CZK' ]) : array<string|int, mixed>
Parameters
$saveTo : string
$statements : array<string|int, mixed>
  • produced by getStatements() function
$format : string = 'pdf'

pdf|xml

$currencyCode : string = 'CZK'
Return values
array<string|int, mixed>

getSince()

Since time getter.

public getSince() : DateTime
Return values
DateTime

getStatements()

Obtain Statements from RB.

public getStatements([string $currencyCode = 'CZK' ][, string $statementLine = '' ]) : array<string|int, mixed>
Parameters
$currencyCode : string = 'CZK'

CZK,USD etc

$statementLine : string = ''

default statement line override

Return values
array<string|int, mixed>

getUntil()

Until time getter.

public getUntil() : DateTime
Return values
DateTime

setAccountNumber()

Set AccountNumber for further operations.

public setAccountNumber(string $accountNumber) : self
Parameters
$accountNumber : string
Return values
self

setScope()

Prepare processing interval.

public setScope(mixed $scope) : DatePeriod
Parameters
$scope : mixed
Tags
throws
Exception
Return values
DatePeriod

setStatementLine()

Set "Statement Line".

public setStatementLine(string $line) : self
Parameters
$line : string

MAIN or ADDITINAL

Tags
throws
InvalidArgumentException
Return values
self

        
On this page

Search results