Statementor
extends Sand
in package
uses
Logging
Description of Statementor.
Tags
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'
$since
public
DateTime
$since
$until
public
DateTime
$until
$accountNumber
private
string
$accountNumber
= ''
$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
DateTimegetStatements()
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
DateTimesetAccountNumber()
Set AccountNumber for further operations.
public
setAccountNumber(string $accountNumber) : self
Parameters
- $accountNumber : string
Return values
selfsetScope()
Prepare processing interval.
public
setScope(mixed $scope) : DatePeriod
Parameters
- $scope : mixed
Tags
Return values
DatePeriodsetStatementLine()
Set "Statement Line".
public
setStatementLine(string $line) : self
Parameters
- $line : string
-
MAIN or ADDITINAL